mvnForum Homepage Welcome Guest  | Guest Setting  |  Register  |   Login
  Search  
Index  | Recent Threads  | Unanswered Threads  | Who's Online  | User List  | Help


»

No member browsing this thread
Thread Status: Active
Total posts in this thread: 2
Post new Thread
Author
Previous Thread This topic has been viewed 3713 times and has 1 reply Next Thread
Male lsylvain
Stranger
Member's Avatar

USA
Joined: Jul 14, 2007
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
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.
[Jul 14, 2007 10:44:28 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest    lsylvain    ljsylvain [Link] Report threatening or abusive post: please login first  Go to top 
Male lsylvain
Stranger
Member's Avatar

USA
Joined: Jul 14, 2007
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
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
[Jul 14, 2007 8:35:57 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest    lsylvain    ljsylvain [Link] Report threatening or abusive post: please login first  Go to top 
Show Printable Version of Thread  Post new Thread