[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] linkning mod library?



On Sat, 20 May 2000, Henrik Brix Andersen wrote:



> Dette prøver jeg så at kompilere:
> sslug@sslug btech1]$ gcc -lBDM -o bdm-test bdm-test.c 
> /tmp/ccNBx87p.o: In function `main':
> /tmp/ccNBx87p.o(.text+0xc): undefined reference to `bdmOpen'
> /tmp/ccNBx87p.o(.text+0x14): undefined reference to `bdmReset'
> /tmp/ccNBx87p.o(.text+0x2a): undefined reference to `bmdReadMemory'
> collect2: ld returned 1 exit status
> 
> Mit spørgsmål er:
> Hvad går der galt? Hvorfor skriver ld undefined reference når bdm*
> funktionerne er declared i BDMlib.h?

Fordi den ikke kan finde selve "koden".

Prøv

gcc -lBDM -L/sti/til/nogle/.so/filer -o bdm-test bdm-test.c 

hvor stien er til et katalog der indeholder de objekt filer der kom med
pakken.

Mads

-- 
Mads Bondo Dydensborg.                               sslug@sslug
Any attempt to brew coffee with a teapot should result in the error
code "418 I'm a teapot". The resulting entity body MAY be short and
stout.
                                 - rfc2324. Go look it up... :-)



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:08 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *