Closed GoogleCodeExporter closed 8 years ago
try this on your command line, just to be sure you're linking to the file that
you
think you are.
g++ main.cpp -l/usr/lib/libticpp.a
Original comment by rjmy...@gmail.com
on 12 Jun 2008 at 12:14
flagging this as fixed until you respond
Original comment by rjmy...@gmail.com
on 8 Jul 2008 at 12:10
I tried your suggestion and it didn't do anything different.
Original comment by james.ho...@gmail.com
on 8 Jul 2008 at 12:55
Could you run
nm -C libticppd.a > ticpp_symbols.txt
and post ticpp_symbols.txt here?
Original comment by rjmy...@gmail.com
on 8 Jul 2008 at 2:24
It is possible to get linker errors similar to those posted by James by
compiling
ticpp.cpp WITHOUT the macro TIXML_USE_TICPP defined (resulting in a practically
empty
object file), compiling main.cpp WITH the macro TIXML_USE_TICPP defined, and
then
trying to link the resulting objects (and the tinyxml-objects).
If not using one of the build scripts, you can use "g++ -DTIXML_USE_TICPP -c
*.cpp"
to create all the object files correctly and they will link without errors.
Original comment by goo...@manumark.de
on 17 Oct 2008 at 7:39
[deleted comment]
hi,
i too got the same error while i was trying to do the same thing
what james.hodapp did. But it got resolved as i did what mentioned in above comment.
g++ -DTIXML_USE_TICPP -c *.cpp
g++ -o xmltest *.o
Thankyou very much for that.
-
Phani
Original comment by phanidee
on 21 Apr 2009 at 5:15
Closed sinse this was not an issue
Original comment by rpusz...@gmail.com
on 21 Apr 2009 at 6:57
Original issue reported on code.google.com by
james.ho...@gmail.com
on 11 Jun 2008 at 4:58