[so] compilare tema4 windows
Andrei Stefanescu
andreistef at gmail.com
Mon May 26 22:00:18 EEST 2008
Cel mai simplu converteste-ti sursele ca .cpp si scoate extern "C". It
should work.
2008/5/26 Vamanu Anca-Maria <anca_vamanu at yahoo.com>:
> 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
>
>
> _______________________________________________
> so mailing list
> so at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/so/attachments/20080526/2b9379ca/attachment.htm
More information about the so
mailing list