Si eu primesc erori de genul LNK2019 si LNK2001:<br><br>TestRW.obj : error LNK2019: unresolved external symbol "int __cdecl GetNrConds(v<br>oid)" (?GetNrConds@@YAHXZ) referenced in function "void __cdecl TestRW(void)" (?<br>TestRW@@YAXXZ)<br>TestStres.obj : error LNK2001: unresolved external symbol "int __cdecl GetNrCond<br>s(void)" (?GetNrConds@@YAHXZ)<br><br>Imi genereaza .dll-urile.<br>Iar Monitor la mine e un struct, de fapt am pastrat aceeasi metoda care a mers pe Linux:<br>am facut un:<br> struct sMonitor {...}<br>si apoi un:<br> typedef struct sMonitor Monitor;<br>Chiar nu inteleg...<br><br><b><i>Octavian Purdila <tavi@cs.pub.ro></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> On Monday 04 December 2006 16:48, Andreea Fulger wrote:<br>> Am si eu o mare curiozitate legata de build-post la tema 3 pe Windows.<br>><br>> Imi apar urmatoarele
erori:<br>><br>> TestRW.obj : error LNK2019: unresolved external symbol "struct Monitor *<br>> __cdecl CreateRWMonitor(void)" (?CreateRWMonitor@@YAPAUMonitor@@XZ)<br>> referenced in function "void __cdecl TestRW(void)" (?TestRW@@YAXXZ)<br>> TestStres.obj : error LNK2001: unresolved external symbol "struct Monitor *<br>> __cdecl CreateRWMonitor(void)" (?CreateRWMonitor@@YAPAUMonitor@@XZ)<br>> TestRW.obj : error LNK2019: unresolved external symbol "void __cdecl<br>> StopCit(struct Monitor *)" (?StopCit@@YAXPAUMonitor@@@Z) referenced in<br>> function "unsigned long __stdcall Functie1ABC(void *)" (?Functie1ABC@@<br>> YGKPAX@Z)<br>> TestStres.obj : error LNK2001: unresolved external symbol "void __cdecl<br>> StopCit(struct Monitor *)" (?StopCit@@YAXPAUMonitor@@@Z)<br>> TestRW.obj : error LNK2019: unresolved external symbol "void __cdecl<br>> StartCit(struct Monitor *)" (?StartCit@@YAXPAUMonitor@@@Z) referenced in<br>> function
"unsigned long __stdcall Functie1ABC(void *)" (?Functie1ABC@@<br>> YGKPAX@Z)<br>> TestStres.obj : error LNK2001: unresolved external symbol "void __cdecl<br>> StartCit(struct Monitor *)" (?StartCit@@YAXPAUMonitor@@@Z)<br>><br>> Ce e mai curios este ca eu nu am facut cu structuri ci cu clase -> .cpp.<br>> (nu am uitat sa pun extern __declspec( dllexport ) deci nu e de aici<br>> problema)<br>><br>> Din cate am observat in directorul de teste se gaseste un header Monitor.h.<br>> Nu stiu de ce, dar daca il las pe acela (in care e definita o structura)<br>> apar problemele de mai sus. Daca il scot imi apare eroarea:<br>><br>> ...\_test\HeaderTest.h fatal error C1083: Cannot open include file "<br>> Monitor.h"<br>><br>> Daca insa pun in directorul _test Monitor.h al meu (in care este definita<br>> clasa mea Monitor) problemele nu mai apar... si trec toate testele.<br>><br>> Revin cu vesnica mea intrebare.... unde e
problema?<br><br>Defineste monitorul cu struct Monitor in loc de class Monitor.<br><br>(din pacate testele au aceasta limitare)<br><br>tavi<br>_______________________________________________<br>so mailing list<br>so@cursuri.cs.pub.ro<br>http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so<br></blockquote><br><p> 
<hr size=1>Everyone is raving about <a href="http://us.rd.yahoo.com/evt=45083/*http://advision.webevents.yahoo.com/mailbeta">the all-new Yahoo! Mail beta.</a>