User forums > Help

Wont Build C code

<< < (3/5) > >>

BlueHazzard:
Does the \\fs02\users\richardpel\C Code\hello.exe exist?
Have you made a project, or only opened a c file?

Rich_P:
HI, The exe does not exist as i assumed this is generated when i click on build?

It is a base .c file i am opening and then pressing build,

I have tried creating from a project, and choosing "c" as the language,

writing the code into the window, saving the file and then building it, buti get the same error each time,

thanks

Rich

Jenna:
Try to put the file or better the project into another folder, yours looks like a network folder.
Windows >= 7 is very (very !) restrictive when you try to create executables in folders it thinks you should not do that (without telling you anything about that).

Rich_P:
I Will try that Jen,

Just so as i am not being silly, i will describe my process from the start

1, Open C::B
2, Select "Create New Project"
3, Select "files" from left
4, select"C/C++"
5, Select next
6, Select "C"
7, Select the filename and where i want to save it to
8, Click ok
9, Write my "Hello World" code
10, hit save,
11, hit build

Get nothing except the error?

Hmm confused,

I tried building as a project, and importing the Hello.c file and then hitting build, and i got this message

-------------- Build: Debug in Hello (compiler: GNU GCC Compiler)---------------

mingw32-gcc.exe -Wall  -g     -c C:\simple\Hello\Hello.c -o obj\Debug\Hello.o
mingw32-g++.exe  -o bin\Debug\Hello.exe obj\Debug\Hello.o   
Execution of 'mingw32-g++.exe  -o bin\Debug\Hello.exe obj\Debug\Hello.o' in 'C:\simple\Hello' failed.
Nothing to be done (all items are up-to-date).

Am i making progress? lol

Rich

BlueHazzard:
"C:\simple\Hello\Hello.c -o obj\Debug\Hello.o"
"C:" is a bad place to save/build data.

--- Quote from: jens on January 28, 2013, 01:24:02 pm ---Try to put the file or better the project into another folder, yours looks like a network folder.
Windows >= 7 is very (very !) restrictive when you try to create executables in folders it thinks you should not do that (without telling you anything about that).

--- End quote ---

Windows >= 7 is a b***h with the user rights. If you don't have a second partition, to test the build process, try to run codeblocks as admin, or to put your project in your home folder.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version