[so] Bercea Gabriel - makefile issue tema 4

Bercea Gabriel gamitech at gmail.com
Fri May 30 16:52:27 EEST 2008


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gamitech.vcf
Type: text/x-vcard
Size: 222 bytes
Desc: not available
Url : http://cursuri.cs.pub.ro/pipermail/so/attachments/20080530/933242b2/attachment.vcf 


More information about the so mailing list