User forums > Using Code::Blocks
Cannot create output directory
smallB:
I've tried create precompiled header but I'm getting error:
"Cannot create object output directory" - I'm logged in as an administrator, I run codeblocks as an administrator, I have plenty of space on my drive yet there seems to be no solution for this. What's the problem and how to solve it?
oBFusCATed:
Hm, what is the full log? Does it work from the command line if you execute the same commands?
smallB:
That's the full log and yes it does create precompiled header when run from command line:
--- Code: ---Build started on: 25-10-2011 at 12:05.29
Build ended on: 25-10-2011 at 12:05.37
-------------- Build: Debug in e:\Excersizes\meta\Promote ---------------
g++ -Wall -fexceptions -g -Wshadow -Winit-self -Wredundant-decls -Wcast-align -Wundef -Wfloat-equal -Winline -Wunreachable-code -Wmissing-declarations -Wmissing-include-dirs -Wswitch-enum -Wswitch-default -Weffc++ -Wmain -pedantic-errors -pedantic -std=c++0x -Wfatal-errors -Wextra -Wall -g -ID:\Libraries\boost_1_47_0\boost_1_47_0 -IE:\Excersizes\meta -Ie:\Excersizes\meta -c E:\Excersizes\meta\Promote.h -o E:\Excersizes\meta\Promote.h.gch
g++ -Wall -fexceptions -g -Wshadow -Winit-self -Wredundant-decls -Wcast-align -Wundef -Wfloat-equal -Winline -Wunreachable-code -Wmissing-declarations -Wmissing-include-dirs -Wswitch-enum -Wswitch-default -Weffc++ -Wmain -pedantic-errors -pedantic -std=c++0x -Wfatal-errors -Wextra -Wall -g -ID:\Libraries\boost_1_47_0\boost_1_47_0 -Ie:\Excersizes\meta -Ie:\Excersizes\meta -c e:\Excersizes\meta\main.cpp -o obj\Debug\main.o
mingw32-g++.exe -LC:\boost_1_47_0 -o \\bin\Debug\e\Excersizes\meta\Promote.exe obj\Debug\main.o
c:/mingw32/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot open output file \\bin\Debug\e\Excersizes\meta\Promote.exe: No such file or directory
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 8 seconds)
1 errors, 0 warnings (0 minutes, 8 seconds)
--- End code ---
Jenna:
Your output path does not look valid.
A double backslash normally points to a server on windows.
You should check the output filename in the "Build targets"-tab of your projects properties.
smallB:
I've created this precompiled file using code::blocks svn 7500 - the 7452 reported the aforementioned errors. But now with this precompiled header in place I'm getting error:
.\Promote.h.gch|1|error: stray '\216' in program|. What 'tha' heck?
Navigation
[0] Message Index
[#] Next page
Go to full version