<div>Am si eu o mare curiozitate legata de build-post la tema 3 pe Windows. </div>
<div> </div>
<div>Imi apar urmatoarele erori:</div>
<div> </div>
<div>TestRW.obj : error LNK2019: unresolved external symbol "struct Monitor * __cdecl CreateRWMonitor(void)" (?CreateRWMonitor@@YAPAUMonitor@@XZ) referenced in function "void __cdecl TestRW(void)" (?TestRW@@YAXXZ)
<br>TestStres.obj : error LNK2001: unresolved external symbol "struct Monitor * __cdecl CreateRWMonitor(void)" (?CreateRWMonitor@@YAPAUMonitor@@XZ)<br>TestRW.obj : error LNK2019: unresolved external symbol "void __cdecl StopCit(struct Monitor *)" (?StopCit@@YAXPAUMonitor@@@Z) referenced in function "unsigned long __stdcall Functie1ABC(void *)" (?Functie1ABC@@
YGKPAX@Z)<br>TestStres.obj : error LNK2001: unresolved external symbol "void __cdecl StopCit(struct Monitor *)" (?StopCit@@YAXPAUMonitor@@@Z)<br>TestRW.obj : error LNK2019: unresolved external symbol "void __cdecl StartCit(struct Monitor *)" (?StartCit@@YAXPAUMonitor@@@Z) referenced in function "unsigned long __stdcall Functie1ABC(void *)" (?Functie1ABC@@
YGKPAX@Z)<br>TestStres.obj : error LNK2001: unresolved external symbol "void __cdecl StartCit(struct Monitor *)" (<a href="mailto:?StartCit@@YAXPAUMonitor@@@Z">?StartCit@@YAXPAUMonitor@@@Z</a>)</div>
<div> </div>
<div>Ce e mai curios este ca eu nu am facut cu structuri ci cu clase -> .cpp. (nu am uitat sa pun <font color="#0000ff" size="2">extern</font><font size="2"> </font><font color="#0000ff" size="2">__declspec</font><font size="2">
( </font><font color="#0000ff" size="2">dllexport</font><font size="2"> ) deci nu e de aici problema)</font></div>
<div> </div>
<div>Din cate am observat in directorul de teste se gaseste un header Monitor.h. Nu stiu de ce, dar daca il las pe acela (in care e definita o structura) apar problemele de mai sus. Daca il scot imi apare eroarea:</div>
<div> </div>
<div>...\_test\HeaderTest.h fatal error C1083: Cannot open include file "Monitor.h"</div>
<div> </div>
<div>Daca insa pun in directorul _test Monitor.h al meu (in care este definita clasa mea Monitor) problemele nu mai apar... si trec toate testele. </div>
<div> </div>
<div>Revin cu vesnica mea intrebare.... unde e problema?</div>
<div> </div>
<div> </div>