[so] Intrebare legata de linkare

Cristi B cristib84 at yahoo.com
Mon Dec 4 21:10:37 EET 2006


Multumesc ptr raspunsul prompt.
Am incercat, am putut compila tema abia dupa ce am comentat toate functiile Callback, evident ca imi pica majoritatea testelor.
Outputul pe care il primesc acum este:
LibRW.obj : error LNK2019: unresolved external symbol "void __cdecl DecCond(int)
" (?DecCond@@YAXH at Z) referenced in function "void __cdecl block(struct Monitor *
,int)" (?block@@YAXPAUMonitor@@H at Z)
LibRW.obj : error LNK2019: unresolved external symbol "void __cdecl DecWait(void
)" (?DecWait@@YAXXZ) referenced in function "void __cdecl block(struct Monitor *
,int)" (?block@@YAXPAUMonitor@@H at Z)
LibRW.obj : error LNK2019: unresolved external symbol "void __cdecl DecSignal(vo
id)" (?DecSignal@@YAXXZ) referenced in function "void __cdecl block(struct Monit
or *,int)" (?block@@YAXPAUMonitor@@H at Z)
LibRW.obj : error LNK2019: unresolved external symbol "void __cdecl DecEnter(voi
d)" (?DecEnter@@YAXXZ) referenced in function "void __cdecl block(struct Monitor
 *,int)" (?block@@YAXPAUMonitor@@H at Z)
LibRW.obj : error LNK2019: unresolved external symbol "void __cdecl IncCond(int)
" (?IncCond@@YAXH at Z) referenced in function "void __cdecl block(struct Monitor *
,int)" (?block@@YAXPAUMonitor@@H at Z)
LibRW.obj : error LNK2019: unresolved external symbol "void __cdecl IncWait(void
)" (?IncWait@@YAXXZ) referenced in function "void __cdecl block(struct Monitor *
,int)" (?block@@YAXPAUMonitor@@H at Z)
LibRW.obj : error LNK2019: unresolved external symbol "void __cdecl IncSignal(vo
id)" (?IncSignal@@YAXXZ) referenced in function "void __cdecl block(struct Monit
or *,int)" (?block@@YAXPAUMonitor@@H at Z)
LibRW.obj : error LNK2019: unresolved external symbol "void __cdecl IncEnter(voi
d)" (?IncEnter@@YAXXZ) referenced in function "void __cdecl block(struct Monitor
 *,int)" (?block@@YAXPAUMonitor@@H at Z)
LibRW.dll : fatal error LNK1120: 8 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.

Octavian Purdila <tavi at cs.pub.ro> wrote: On Monday 04 December 2006 20:20, Cristi B wrote:
> Si eu primesc erori de genul LNK2019 si LNK2001:
>
> TestRW.obj : error LNK2019: unresolved external symbol "int __cdecl
> GetNrConds(v oid)" (?GetNrConds@@YAHXZ) referenced in function "void
> __cdecl TestRW(void)" (? TestRW@@YAXXZ)
> TestStres.obj : error LNK2001: unresolved external symbol "int __cdecl
> GetNrCond s(void)" (?GetNrConds@@YAHXZ)
>
> Imi genereaza .dll-urile.
> Iar Monitor la mine e un struct, de fapt am pastrat aceeasi metoda care a
> mers pe Linux: am facut un:
>     struct sMonitor {...}
> si apoi un:
>     typedef struct sMonitor Monitor;
> Chiar nu inteleg...
>

Salut,

Incearca cu struct Monitor {...} si fara typedef.


tavi


 
---------------------------------
Access over 1 million songs - Yahoo! Music Unlimited.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/so/attachments/20061204/709d805f/attachment.html


More information about the so mailing list