Static libraries
Posted: Sat Jun 07, 2014 8:05 pm
Hello,
I work with Windows XP SP3 and CodeLite 6.0.
I want to make a static library with some utilities written in C.
I opened a new project called Utils and I added some files in the src project folder.
All would be OK either in Debug mode or in Release mode, except for the extension of the object files, as can be seen in the BuildLog.txt file listed below:
C:\WINDOWS\system32\cmd.exe /c "F:/MinGW-4.8.1/bin/mingw32-make.exe -j2 -e -f Makefile"
----------Building project:[ Utils - Debug ]----------
mingw32-make[1]: Entering directory 'F:/Tries_CL/Utils'
F:\MinGW-4.8.1\bin\gcc.exe -c "F:/Tries_CL/Utils/getargs.c" -g -o ./Debug/getargs.c.o -I. -I.
F:\MinGW-4.8.1\bin\gcc.exe -c "F:/Tries_CL/Utils/options.c" -g -o ./Debug/options.c.o -I. -I.
F:\MinGW-4.8.1\bin\gcc.exe -c "F:/Tries_CL/Utils/printmsg.c" -g -o ./Debug/printmsg.c.o -I. -I.
F:\MinGW-4.8.1\bin\gcc.exe -c "F:/Tries_CL/Utils/reprterr.c" -g -o ./Debug/reprterr.c.o -I. -I.
F:\MinGW-4.8.1\bin\gcc.exe -c "F:/Tries_CL/Utils/skipargs.c" -g -o ./Debug/skipargs.c.o -I. -I.
F:\MinGW-4.8.1\bin\gcc.exe -c "F:/Tries_CL/Utils/wstrings.c" -g -o ./Debug/wstrings.c.o -I. -I.
F:\MinGW-4.8.1\bin\ar.exe rcu ./Debug/libUtils.a @"Utils.txt"
mingw32-make[1]: Leaving directory 'F:/Tries_CL/Utils'
0 errors, 0 warnings
Instead of the output file "getargs.c.o" I supposed I would get the file "getargs.o".
And I do not understand why the final option -I. is written twice.
I read the Utils.mk file and the first lines are:
##
## Auto Generated makefile by CodeLite IDE
## any manual changes will be erased
##
So I thing that something has to be changed in the ".mk" file generation, but where ?
I work with Windows XP SP3 and CodeLite 6.0.
I want to make a static library with some utilities written in C.
I opened a new project called Utils and I added some files in the src project folder.
All would be OK either in Debug mode or in Release mode, except for the extension of the object files, as can be seen in the BuildLog.txt file listed below:
C:\WINDOWS\system32\cmd.exe /c "F:/MinGW-4.8.1/bin/mingw32-make.exe -j2 -e -f Makefile"
----------Building project:[ Utils - Debug ]----------
mingw32-make[1]: Entering directory 'F:/Tries_CL/Utils'
F:\MinGW-4.8.1\bin\gcc.exe -c "F:/Tries_CL/Utils/getargs.c" -g -o ./Debug/getargs.c.o -I. -I.
F:\MinGW-4.8.1\bin\gcc.exe -c "F:/Tries_CL/Utils/options.c" -g -o ./Debug/options.c.o -I. -I.
F:\MinGW-4.8.1\bin\gcc.exe -c "F:/Tries_CL/Utils/printmsg.c" -g -o ./Debug/printmsg.c.o -I. -I.
F:\MinGW-4.8.1\bin\gcc.exe -c "F:/Tries_CL/Utils/reprterr.c" -g -o ./Debug/reprterr.c.o -I. -I.
F:\MinGW-4.8.1\bin\gcc.exe -c "F:/Tries_CL/Utils/skipargs.c" -g -o ./Debug/skipargs.c.o -I. -I.
F:\MinGW-4.8.1\bin\gcc.exe -c "F:/Tries_CL/Utils/wstrings.c" -g -o ./Debug/wstrings.c.o -I. -I.
F:\MinGW-4.8.1\bin\ar.exe rcu ./Debug/libUtils.a @"Utils.txt"
mingw32-make[1]: Leaving directory 'F:/Tries_CL/Utils'
0 errors, 0 warnings
Instead of the output file "getargs.c.o" I supposed I would get the file "getargs.o".
And I do not understand why the final option -I. is written twice.
I read the Utils.mk file and the first lines are:
##
## Auto Generated makefile by CodeLite IDE
## any manual changes will be erased
##
So I thing that something has to be changed in the ".mk" file generation, but where ?