[so] Intrebare legata de Makefile.checker

adrian nistor adriannistorrr at yahoo.com
Fri Dec 1 00:06:21 EET 2006


Si cred ca antetele lor incluse in codul librariilor ar trebui sa 
 aiba extern "C".  In  CallbackMonitor.h si in CallbackRW.h 
 lipseste acest extern "C".
  
Andreea Fulger <andreea.fulger at gmail.com> wrote: Buna seara!
 
 Am implementat tema in C++ si incercand sa rulez tema am dat peste erori de genul:
 ...
 LibMonitor.so: undefined reference to `IncSignal()'
 LibMonitor.so: undefined reference to `IncCond(int)'
 LibMonitor.so: undefined reference to `IncEnter()'
 LibMonitor.so: undefined reference to `IncWait()'
 ...
 asta dupa ce toate fisierele sunt compilate.
 
 Daca redenumesc fisierul ControlMonitor.c cu extensia .cpp acestea nu mai apar, in schimb apar 
 
 _test/Test2.o: In function `FunctieA':
 Test2.c:(.text+0x7d): undefined reference to `Verifica'
 _test/Test2.o: In function `FunctieB':
 Test2.c:(.text+0x15d): undefined reference to `Verifica'
 collect2: ld returned 1 exit status
 
 Am implementat doar partea de monitor asa ca am eliminat tot ce avea legatura cu partea de RW. 
 
 Gresesc eu pe undeva sau e ceva in neregula cu Makefile.checker-ul?
 _______________________________________________
so mailing list
so at cursuri.cs.pub.ro
http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so


 
---------------------------------
Want to start your own business? Learn how on Yahoo! Small Business.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/so/attachments/20061130/507196b5/attachment.html


More information about the so mailing list