|
|
mvnForum » List all forums » » Forum: The SWORD Project for Windows » » » Thread: Link error |
|
| Print at May 24, 2013 7:48:40 PM | View all posts in this thread on one page |
| Posted by lsylvain at Jul 14, 2007 10:44:28 AM |
|
Link error I grabbed the latest from subversion. The build appeared to go fine until the link target executed, at which point I saw the following error: g++ -g3 -O0 -Wall -o buildtest.exe buildtest.o ./lib/.libs/libsword.a -lz ./lib/.libs/libsword.a(swobject.o): In function `_ZNK5sword7SWClass16isAssignableFromEPKc': /i/working/sword/lib/../src/utilfuns/swobject.cpp:31: undefined reference to `sword::stricmp(char const*, char const*)' I investigated and from what I can see the stricmp method appears to be declared in utilstr.h and implemented in utilstr.cpp, and utilstr.cpp appears to have compiled successfully (there is both a utilstr.o and utilstr.lo in the lib directory when the build completes). I have attached a full compile and link log for your reference. Any suggestions on how to investigate or, better, to resolve this would be greatly appreciated. |
| Posted by lsylvain at Jul 14, 2007 8:35:57 PM |
|
Re: Link error I resolved the problem by modifying swobject.cpp to use the stricmp method from <string.h>, which seems the best way. I can't check the change in as I don't have privileges, but I was able to build, deploy and test with mgrtest successfully. So I moved to the next step and I have new issues with making orbitcpp (see below). I examined the Makefile and can see the problem is occuring on the following command: orbit-idl-2 -l cpp ./../swordorb.idl I added links to suggested by ejb (post 470), although I do not have a orbitcpp-2.0/orbitcpp/ directory. I'll have to check cygwin and make sure I didn't miss anything when I installed orbit2, although I was pretty careful. Below is my bash history. Any insight on the below errors would be appreciated. Thanks! $cd bindings/corba/orbitcpp $ make orbit-idl-2 -l c ./../swordorb.idl orbit-idl-2 2.14.0 compiling mode, hide preprocessor errors, passes: stubs skels common headers orbit-idl-2 -l cpp ./../swordorb.idl orbit-idl-2 2.14.0 compiling mode, hide preprocessor errors, passes: stubs skels common headers ** (process:2544): WARNING **: idl-compiler backend not found. ** (process:2544): WARNING **: ./../swordorb.idl compilation failed make: *** [swordorb-common.c] Error 1 |
|
|
Current timezone is GMT May 24, 2013 7:48:40 PM |