User forums > Using Code::Blocks
Problem with Custom MakeFile
binnyshah:
Hi,
I am trying to compile some code on Windows 7 using code-blocks 10.05.
While building the code,I get the error:
--- Code: ---Running command: mingw32-make.exe -f Makefile Debug
mingw32-make.exe: *** No rule to make target `Debug'. Stop.
Process terminated with status 2 (5 minutes, 32 seconds)
0 errors, 1 warnings
--- End code ---
But exe is built,inspite of the error. The only problem is,I am unable to debug the code,as it doesnt halt at any of the breakpoints. Please help.
oBFusCATed:
Why are you starting second thread?
There is a way to modify the parameters sent to make, see Project -> Build options -> One of the last tabs (it could be hidden)...
binnyshah:
I started a new thread coz the original question has changed slightly.
I have given the command
--- Code: ---make
make package-win32-base-debug
--- End code ---
in pre build steps in build options.
And in the last tab of build options I have kept the Build file/target blank.
This was working perfectly fine earlier and I could successfully debug. I just cant figure out what is it that I changed , tht now my debugger doesnt work .
And also,howcome exe is built perfectly well,just debug isnt working.
oBFusCATed:
Why are you running make in pre build step?
Pre-build steps are for coping files an preparing the build...
Have you looked in the output of make? Does it used -g when compiling? Does it use strip to remove the debug info?
binnyshah:
I have now removed make command from pre build steps and added it in Build Options->Make Target. Now I am not getting any error in build. But still Debug isnt working :(.
The end of Build Log looks something like this
--- Code: ---for i in "" ./vlc-1.1.0-rc3/*.dll \
./vlc-1.1.0-rc3/*.exe \
./vlc-1.1.0-rc3/activex/*.dll \
./vlc-1.1.0-rc3/mozilla/*.dll \
./vlc-1.1.0-rc3/plugins/*.dll \
; do \
if test -n "$i" ; then \
objcopy --only-keep-debug "$i" "$i.dbg"; \
objcopy --strip-all "$i" ; \
objcopy --add-gnu-debuglink="$i.dbg" "$i" ; \
mv "$i.dbg" "./symbols-1.1.0-rc3"; \
fi ; \
done
--- End code ---
But in compiler and debugger settings I have neither checked -g option nor -s.
Please advice further.
Navigation
[0] Message Index
[#] Next page
Go to full version