User forums > Help
Code::Blocks Project Dosen't Work Correctly
kittyhacker101:
I have a project that I am working on in Code::Blocks (It's for a DLL File) and It won't compile correctly.
Code::Blocks says that a file that is in the project dosen't exist.
I am running Code::Blocks 13.12.
Note : I Replaced the name of the project and file extentions with # for privacy purposes.
Note : The file ntoskrnl.h exists, and is in the project. This is what I was talking about.
Build Log :
-------------- Build: Release in # (compiler: GNU GCC Compiler)---------------
[ 0.3%] mingw32-gcc.exe -fexpensive-optimizations -O3 -DBUILD_DLL -fexpensive-optimizations -O3 -I..\..\..\Source -I..\..\..\Source -c #Source\Kernel\cache\cachesub.c -o output\Source\Kernel\cache\cachesub.c.o
[ 0.5%] mingw32-gcc.exe -fexpensive-optimizations -O3 -DBUILD_DLL -fexpensive-optimizations -O3 -I..\..\..\Source -I..\..\..\Source -c #\Source\Kernel\cache\copysup.c -o output\Source\Kernel\cache\copysup.c.o
[ 0.8%] mingw32-gcc.exe -fexpensive-optimizations -O3 -DBUILD_DLL -fexpensive-optimizations -O3 -I..\..\..\Source -I..\..\..\Source -c #\Source\Kernel\cache\fssup.c -o output\Source\Kernel\cache\fssup.c.o
[ 1.1%] mingw32-gcc.exe -fexpensive-optimizations -O3 -DBUILD_DLL -fexpensive-optimizations -O3 -I..\..\..\Source -I..\..\..\Source - #\Source\Kernel\cache\lazyrite.c -o output\Source\Kernel\cache\lazyrite.c.o
[ 1.4%] mingw32-gcc.exe -fexpensive-optimizations -O3 -DBUILD_DLL -fexpensive-optimizations -O3 -I..\..\..\Source -I..\..\..\Source -c #\Source\Kernel\cache\logsup.c -o output\Source\Kernel\cache\logsup.c.o
#\Source\Kernel\cache\cachesub.c:12:22: fatal error: ntoskrnl.h: No such file or directory
compilation terminated.
Process terminated with status 1 (0 minute(s), 1 second(s))
#\Source\Kernel\cache\copysup.c:11:22: fatal error: ntoskrnl.h: No such file or directory ???
#\Source\Kernel\cache\fssup.c:12:22: fatal error: ntoskrnl.h: No such file or directory
#\Source\Kernel\cache\lazyrite.c:11:22: fatal error: ntoskrnl.h: No such file or directory
compilation terminated. :o
Process terminated with status 1 (0 minute(s), 1 second(s))
compilation terminated.
Process terminated with status 1 (0 minute(s), 1 second(s))
compilation terminated.
Process terminated with status 1 (0 minute(s), 1 second(s))
#\Source\Kernel\cache\logsup.c:11:22: fatal error: ntoskrnl.h: No such file or directory ???
compilation terminated.
Process terminated with status 1 (0 minute(s), 1 second(s))
5 error(s), 0 warning(s) (0 minute(s), 1 second(s)) >:(
Please Help!
MortenMacFly:
--- Quote from: kittyhacker101 on August 25, 2015, 03:41:05 am ---Code::Blocks says that a file that is in the project dosen't exist.
--- End quote ---
Its not C::B that "says" that, its the compiler. The compiler is usually always right, so it must be something about your project settings and not C::B.
--- Quote from: kittyhacker101 on August 25, 2015, 03:41:05 am ---Note : The file ntoskrnl.h exists, and is in the project. This is what I was talking about.
--- End quote ---
You are missing programming basics: The compiler needs to know where to look for the include files. Please adjust your project settings by adding the path to ntoskrnl.h to the compiler include paths.
kittyhacker101:
I added to the search paths, and it still dosen't work. ???
MortenMacFly:
--- Quote from: kittyhacker101 on August 25, 2015, 07:27:50 am ---I added to the search paths, and it still dosen't work. ???
--- End quote ---
Is the file "ntoskrnl.h" exactly in the path "D:\OneDrive\Backup\Desktop\KittyhackerOS"?
Please open an explorer in that path and verify. The compiler says it is not - I believe the compiler more than you... ;-)
kittyhacker101:
The compiler dosen't look in sub directories? ??? I guess I will have to add it to the compiler directories, once I find that file that is jumbled with 100+ source code files...
Navigation
[0] Message Index
[#] Next page
Go to full version