[so] Bercea Gabriel - makefile issue tema 4
foxX
alex.mihaiuc at gmail.com
Sat May 31 11:03:45 EEST 2008
Salut,
care sunt functiile pe care nu le gaseste atunci cand se plange?
2008/5/30 Bercea Gabriel <gamitech at gmail.com>:
> Salutari tuturor. Am pierdut 2 zile la tema 4 pentru ca nu reusesc sa fac
> makefileul pentru tema asta.
> Am urmatorul continut in makefile:
>
> OBJ_LIST=QueueListsManipulator.obj
> build: LibMonitor.dll LibRW.dll
>
> LibMonitor.dll: LibMonitor.obj ControlMonitor.obj $(OBJ_LIST)
> cl /W3 /nologo /LD LibMonitor.obj ControlMonitor.obj $(OBJ_LIST)
>
> LibRW.dll: LibRW.obj LibMonitor.lib ControlRW.obj $(OBJ_LIST)
> cl /W3 /nologo /LD LibRW.obj ControlRW.obj LibMonitor.lib $(OBJ_LIST)
>
> LibMonitor.obj: LibMonitor.cpp
> cl /EHsc /c /w LibMonitor.cpp /Fo$@
>
> LibRW.obj: LibRW.cpp
> cl /EHsc /c LibRW.cpp /Fo$@
>
> QueueListsManipulator.obj: QueueListsManipulator.cpp
> $(CC) $(CFLAGS) /c QueueListsManipulator.cpp /Fo$@
>
>
> clean:
> rm *.obj *.dll *.exp $(OBJ_LIST)
>
>
> Execut urmatoarele serii de comenzi in consola:
>
> nmake -f NMakefile.checker build-pre - asta e OK copiaza cele 2 objuri in
> root ul sursele mele
>
> nmake build - successful de asemenea, imi creeaza LibMonitor.dll LibRW.dll.
> Am verificat cele 2 librarii cu un program care face browse in portable
> executers, si functiile exportate sunt cele asteptate. Am facut de asemenea
> un program de test care face LoadLibrary si GetProcAddress si merge OK.
>
> nmake -f NMakefile.checker build-post - aici imi face obj la toate restul
> de fisiere, si la ultimul pas, acolo unde tre sa scoata test.exe, imi da 13
> unresolved externals, si mi le enumera. Si astea sunt functii de la monitor,
> de la lib RW, structura Monitor.
>
> Ma depaseste teribil chestia asta.
> Daca tot se compileaza pe masina virtuala chestia asta cu compilatoare de
> visual studio, de ce nu pot sa trimit proiectul de Visual Studio.
>
> PS: Compilat in Visual Studio merge ok, se testeaza.
>
> _______________________________________________
> so mailing list
> so at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
>
>
--
kthxbai
More information about the so
mailing list