Re: undefined reference to `UpnpInit'

Thang <[email protected]> Thu, 18 Jan 2007 16:45:05 +0100
Newsgroups gmane.linux.upnp-sdk.general
Message-ID <[email protected]>
Hi Nek,

it works. Thx a lot. But is the meaning of "-lupnp"?

br,
Thang


ext Nektarios K. Papadopoulos wrote:
> Hi Thang,
>
> can you try:
> g++ -I/home/upnp/include/upnp -L/home/upnp/ -lupnp test_init.c
>
>
> cheers,
> nek
>
> Thang wrote:
>> Hi Kitty,
>>
>> I already try your suggestion using command :
>>
>> "g++ -I/home/upnp/include/upnp -L/home/upnp/libupnp.a test_init.c"
>> The message after compiling is still the same:
>>
>> "/tmp/ccxrFJde.o: In function `main':
>> test_init.c:(.text+0xf1): undefined reference to `UpnpInit'
>> .......
>> collect2: ld returned 1 exit status"    :-(
>>
>> I also check the library libupnp.a if it contains the function UpnpInit.
>>
>>
>> You wrote: "By this, U would know if by chance upnpapi.c which has 
>> the function
>> UpnpInit is excluded by any compile time option."
>>
>> Where can I find this c-file? In my opinion the UpnpInit is included. 
>> I have check it in the package "libupnp-1.3.1"
>>
>> Do you another ideas????
>> Maybe the installation wasn't successfully?
>>
>> 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 
>>
>> _______________________________________________
>> UPnP-SDK-discuss mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/upnp-sdk-discuss
>>
>


-------------------------------------------------------------------------
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