undefined reference to `UpnpInit'

Thang <[email protected]> Thu, 18 Jan 2007 09:36:17 +0100
Newsgroups gmane.linux.upnp-sdk.general
Message-ID <[email protected]>
Hello,

hope someone could help me:-(
I tried to compile an example which is included in the tar-package 
version 1.3.1. You will find it in the dictionary /upnp/test/.
If I compiled this example (test_init.c) using like this command: "g++ 
-I/home/upnp/include/upnp -L/home/upnp/ test_init.c" I got following 
message:

"/tmp/ccxrFJde.o: In function `main':
test_init.c:(.text+0xf1): undefined reference to `UpnpInit'
.......
collect2: ld returned 1 exit status"

The called function "UpnpInit" is declared in the header-file "upnp.h". 
I find it very strange and I don't have an idea why it does work. As you 
can see below  I 
really bind the library:-(

Hope you can help me.


br,
Thang

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV