<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hello!<br><br>Stiu ca s-a mai intrebat. Am citit mailurile dar tot nu am reusit sa rezolv la mine.<br>Eroarea la compilare este urmatoarea:<br> <span style="font-style: italic;">Creating library LibMonitor.lib and object LibMonitor.exp</span><br style="font-style: italic;"><span style="font-style: italic;">monitor.obj : error LNK2019: unresolved external symbol _IncEnter referenced in</span><br style="font-style: italic;"><span style="font-style: italic;">function _Enter</span><br><br>Makefile-ul este:<br><br><span style="font-style: italic;">CFLAGS = /nologo /W4 /Wp64 /D "_CRT_SECURE_NO_DEPRECATE" </span><br style="font-style: italic;"><span style="font-style: italic;">CC = cl</span><br style="font-style: italic;"><br style="font-style: italic;"><span style="font-style:
italic;">build: rw\rw.obj monitor\monitor.obj monitor\queue.obj</span><br style="font-style: italic;"><span style="font-style: italic;"> link /release /dll /out:LibMonitor.dll ControlMonitor.obj monitor\monitor.obj monitor\queue.obj </span><br style="font-style: italic;"><span style="font-style: italic;"> link /release /dll /out:LibRW.dll rw\rw.obj ControlRW.obj LibMonitor.lib</span><br style="font-style: italic;"><br style="font-style: italic;"><span style="font-style: italic;">monitor\monitor.obj:</span><br style="font-style: italic;"><span style="font-style: italic;"> $(CC) $(CFLAGS) /c /Fo$@ $** </span><br style="font-style: italic;"><br style="font-style: italic;"><span style="font-style: italic;">monitor\queue.obj:</span><br style="font-style: italic;"><span style="font-style: italic;">
$(CC) $(CFLAGS) /c /Fo$@ $** </span><br style="font-style: italic;"><span style="font-style: italic;"> </span><br style="font-style: italic;"><span style="font-style: italic;">rw\rw.obj: rw\rw.c</span><br style="font-style: italic;"><span style="font-style: italic;"> $(CC) $(CFLAGS) /c /Fo$@ $**<br><br><span style="font-style: italic;"></span></span>Dupa cum se vede din makefile, sursele mele sunt C. <br>In librarie, in headerele care exporta declara functiile exportate am inaintea lor '<span style="font-style: italic;">__declspec (dllexport) </span>' si clauzele:<br>#ifdef __cplusplus<br>extern "C" {<br>#endif<br><br>#ifdef __cplusplus<br>}<br>#endif<br><br>Ce imi lipseste?<br><br>Anca Vamanu<br></div></div><br>
</body></html>