Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / September 2004



Tip: Looking for answers? Try searching our database.

Problems starting a compiled unix app

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lothar Scholz - 22 Sep 2004 21:50 GMT
Hello,

i tried to compile a unix application that uses X11.

The "./configure; make; suso make install" was okay without any error.

But when i try to start one of the compiled test programs, i get the
following error:

---------------------------------------------------------------------
Lothar-Scholzs-Computer:~/fox-1.3.12/tests llothar$ ./header
dyld: header Undefined symbols:
__ZTVN10__cxxabiv117__class_type_infoE
__ZTVN10__cxxabiv120__si_class_type_infoE
___cxa_pure_virtual
___gxx_personality_v0
Trace/BPT trap
-----------------------------------------------------------------------

So what did i miss ?
Eric Albert - 23 Sep 2004 05:11 GMT
> i tried to compile a unix application that uses X11.
>
[quoted text clipped - 14 lines]
>
> So what did i miss ?

You need to use g++ to compile or pass -lstdc++ to the compiler.

Hope this helps,
Eric

Signature

Eric Albert         ejalbert@cs.stanford.edu
http://outofcheese.org/

Lothar Scholz - 23 Sep 2004 06:21 GMT
>> i tried to compile a unix application that uses X11.
>>
[quoted text clipped - 19 lines]
>Hope this helps,
>Eric

But it compiles and links without problems. Thats my problem. Only
when i want to start the application i get the errors.

On Linux i have something like the LD_LIBRARY_PATH and  "ldd" to solve
problems with not found library. But on the Mac i'm totally helpless
at the moment.
Hauke Klein - 23 Sep 2004 08:51 GMT
> On Linux i have something like the LD_LIBRARY_PATH and  "ldd" to solve
> problems with not found library. But on the Mac i'm totally helpless
> at the moment.

You can use "otool -L <executable>" instead of "ldd".

Hauke
Eric Albert - 23 Sep 2004 18:55 GMT
> >> i tried to compile a unix application that uses X11.
> >>
[quoted text clipped - 16 lines]
> >
> >You need to use g++ to compile or pass -lstdc++ to the compiler.

> But it compiles and links without problems. Thats my problem. Only
> when i want to start the application i get the errors.

That's probably because the application is doing something stupid like
linking with -flat_namespace -undefined suppress.  Doing what I said
above should fix it.

-Eric

Signature

Eric Albert         ejalbert@cs.stanford.edu
http://outofcheese.org/

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.