Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

statically linking without function call problem



Dear List,

I'm using a static lib /usr/local/lib/libNetxx.a while make I get:

make
g++-3.3 -g -Wall -O2 -I/sw/include -o mccpd src/mccpd.o src/options.o src/configfile.o src/converter.o src/announcement.o src/httpRequest.o src/mccpRequest.o src/converterAccess.o src/mccpRequestHandler.o src/deliver.o src/mccpdException.o src/configuration.o src/logger.o -lNetxx -lexpat -lmatrixprotocols -lmatrixsoc -lmatrixutils -lpthread -L/sw/lib
ld: Undefined symbols:
Netxx::Datagram::read(void*, unsigned)
Netxx::Datagram::write(void const*, unsigned)
Netxx::Datagram::Datagram[in-charge](Netxx::Address const&, Netxx::Timeout const&)
Netxx::Datagram::~Datagram [in-charge]()
Netxx::Datagram::get_socketfd() const
make: *** [mccpd] Error 1

But the source that is build by make has no call to the above!

mccpd$grep -r "Netxx::Datagram" *
mccpd$

When linking is done with:

make
g++-3.3 -g -Wall -O2 -I/sw/include -o mccpd src/mccpd.o src/options.o src/configfile.o src/converter.o src/announcement.o src/httpRequest.o src/mccpRequest.o src/converterAccess.o src/mccpRequestHandler.o src/deliver.o src/mccpdException.o src/configuration.o src/logger.o -lNetxx -lexpat -lmatrixsoc -lmatrixprotocols -lmatrixutils -lpthread -L/sw/lib /usr/local/lib/libNetxx.a

anything is fine. So I'm working around this that way. Also possible is: adding a variable Netxx::Datagram d; to main. *grmpf*

I'd like to know how to correct this issue. Any comments? Otherwise I'm going to change that dependency to something different (unix socket api).

thx
Mark
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.