User forums > Help

Cygwin, Build simple project

(1/2) > >>

dnewhous:
I am trying to use the cygwin gcc compiler on the two source files I found on the web here http://www.linuxhowtos.org/C_C++/socket.htm.

The error message that I get is
"Execution of 'gcc.exe -c P:/Projects/client.c -o P:/Projects/client.o' in 'C:\Users\newhodl\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\CodeBlocks' failed."

I want to use CodeBlocks for some very serious development. 

stahta01:

--- Quote from: dnewhous on July 18, 2012, 12:21:52 am ---I am trying to use the cygwin gcc compiler on the two source files I found on the web here http://www.linuxhowtos.org/C_C++/socket.htm.

The error message that I get is
"Execution of 'gcc.exe -c P:/Projects/client.c -o P:/Projects/client.o' in 'C:\Users\newhodl\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\CodeBlocks' failed."

I want to use CodeBlocks for some very serious development.  

--- End quote ---

Most likely solution, change the Toolchain to use the real exe instead of gcc.exe (which is a symlink).

Most likely a valid name is either gcc-4.exe or gcc-3.exe

Tim S.

dnewhous:

--- Quote from: stahta01 on July 18, 2012, 01:03:19 am ---
Most likely solution, change the Toolchain to use the real exe instead of gcc.exe (which is a symlink).

Most likely a valid name is either gcc-4.exe or gcc-3.exe

Tim S.

--- End quote ---

Changing to either gcc-3.exe or gcc-4.exe changes the error message to "'g++.exe ...'"
Changing to the i686-pc-cygwin-gcc.exe files changes the error message similarly. 

stahta01:
Try creating the Code::Blocks project and working directory in a spot you have permissions to create and delete files without being the administrator.

This IS NOT a good location "C:\Users\newhodl\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\CodeBlocks" to use.

Also read this link http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

Tim S.

dnewhous:
I made a console project and added my files to it.  When I try to Build I get the following error

"gcc.exe -Wall  -g     -c P:/Projects/ServerClientTest/server.c -o obj/Debug/server.o
Execution of 'gcc.exe -Wall  -g     -c P:/Projects/ServerClientTest/server.c -o obj/Debug/server.o' in 'P:\Projects\ServerClientTest' failed.
Nothing to be done."

Navigation

[0] Message Index

[#] Next page

Go to full version