[so] compilare tema4 windows
Vamanu Anca-Maria
anca_vamanu at yahoo.com
Mon May 26 21:52:22 EEST 2008
Hello!
Stiu ca s-a mai intrebat. Am citit mailurile dar tot nu am reusit sa rezolv la mine.
Eroarea la compilare este urmatoarea:
Creating library LibMonitor.lib and object LibMonitor.exp
monitor.obj : error LNK2019: unresolved external symbol _IncEnter referenced in
function _Enter
Makefile-ul este:
CFLAGS = /nologo /W4 /Wp64 /D "_CRT_SECURE_NO_DEPRECATE"
CC = cl
build: rw\rw.obj monitor\monitor.obj monitor\queue.obj
link /release /dll /out:LibMonitor.dll ControlMonitor.obj monitor\monitor.obj monitor\queue.obj
link /release /dll /out:LibRW.dll rw\rw.obj ControlRW.obj LibMonitor.lib
monitor\monitor.obj:
$(CC) $(CFLAGS) /c /Fo$@ $**
monitor\queue.obj:
$(CC) $(CFLAGS) /c /Fo$@ $**
rw\rw.obj: rw\rw.c
$(CC) $(CFLAGS) /c /Fo$@ $**
Dupa cum se vede din makefile, sursele mele sunt C.
In librarie, in headerele care exporta declara functiile exportate am inaintea lor '__declspec (dllexport) ' si clauzele:
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
Ce imi lipseste?
Anca Vamanu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/so/attachments/20080526/c7b4292b/attachment.htm
More information about the so
mailing list