Can't link up C++ file

Discussion about Parallella (and Epiphany) Software Development

Moderators: amylaar, jeremybennett, simoncook

Re: Can't link up C++ file

Postby piotr5 » Sat Feb 06, 2016 2:52 pm

well, don't use -lstdc++ (which is added automatically, unless your linking-command has -nostdlib) and maybe avoid all exceptions and inheritance, as . if c is sufficient, and you just want the boolean type (and maybe the bool-array), it shouldn't be difficult to work around a missing lib when you include all headers in c-mode and link the relevant libs only...

I suggest experimenting with sizes of the output-program, see how different ways of programming and compiling affect the binary size. for example you didn't explicitely optimize for size...

recently the development-environment changed in one important area: executing code in shared memory isn't possible anymore. previously your program might have compiled in c++ because some lib-procedures would silently become stored in shared memory. (one copy per core running that program?) now this intransparency is gone.
piotr5
 
Posts: 230
Joined: Sun Dec 23, 2012 2:48 pm

Re: Can't link up C++ file

Postby sebraa » Mon Feb 08, 2016 2:14 pm

sebraa
 
Posts: 495
Joined: Mon Jul 21, 2014 7:54 pm

Re: Can't link up C++ file

Postby piotr5 » Wed Feb 10, 2016 11:54 pm

piotr5
 
Posts: 230
Joined: Sun Dec 23, 2012 2:48 pm

Re: Can't link up C++ file

Postby sebraa » Thu Feb 11, 2016 3:54 pm

sebraa
 
Posts: 495
Joined: Mon Jul 21, 2014 7:54 pm


Return to Programming Q & A

Who is online

Users browsing this forum: No registered users and 23 guests