Author Topic: Error compiling [Vista]  (Read 7215 times)

that_dude_over_there

  • Guest
Error compiling [Vista]
« on: October 14, 2007, 04:17:12 am »
HI, I just downloaded a nightly build of code::blocks, and I can't seem to get it working. I've downloaded the October 1st nightly build (4503 I believe), and I downloaded the MinGW compiler off the MinGW site. My problem is, nothing will compile. Whenever I try and compile a simple hello world program I receive this error..

Compiling: main.cpp
Execution of 'mingw32-g++.exe -Wall -fexceptions -g   -IC:\MinGW\include -IC:\MinGW\include\c++\3.4.2 -IC:\ MinGW\include\c++\3.4.2\backward -IC:\MinGW\include\c++\3.4.2\mingw32 -IC:\MinGW\lib\gcc\mingw32\3.4.2\include  -c D:\Test\main.cpp -o obj\Debug\main.o' in 'D:\Test' failed.
Nothing to be done

This is after following the instructions on the wiki by the way. I dunno where to go from here. Hopefully one of you do.

~TDOT> :shock:

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: Error compiling [Vista]
« Reply #2 on: October 14, 2007, 08:00:33 am »
Ensure that "C:\MinGW\bin\mingw32-g++.exe" exists. If not, you're missing MinGW's gcc-g++ package.
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Offline darthdespotism

  • Almost regular
  • **
  • Posts: 163
    • Coder's Nemesis
Re: Error compiling [Vista]
« Reply #3 on: October 14, 2007, 02:12:42 pm »
If I'm seeing this right you have MinGW and your Project on different Partitions on your PC which used not to work (don't know if this was fixed with 4.2.1 Tecnology Preview)

that_dude_over_there

  • Guest
Re: Error compiling [Vista]
« Reply #4 on: October 15, 2007, 10:38:50 pm »
Thanks for the replies guys.
Ceniza:
Umm...thanks, but it can't really help me. I don't speak French :D.

TDragon: Yes it's there. That's the executable that actually compiles the code correct?

Darthdespotism:
I've tried putting it in the same partition as well, that didn't help either. Same exact error.

Anybody else have any ideas?

~TDOT> :shock:

Offline Auria

  • Almost regular
  • **
  • Posts: 152
Re: Error compiling [Vista]
« Reply #5 on: October 15, 2007, 11:06:38 pm »
from Ceniza's link
Quote

- Installer tout les package de MinGW dans C:\MinGW http://www.mingw.org/download.shtml
- Installer Code::Blocks sans MinGW http://prdownloads.sourceforge.net [...] e?download
- Déplacer les fichiers suivant :
C:\MinGW\libexec\gcc\mingw32\3.4.5\cc1.exe => C:\MinGW\bin\cc1.exe
C:\MinGW\libexec\gcc\mingw32\3.4.5\cc1plus.exe => C:\MinGW\bin\cc1plus.exe
C:\MinGW\libexec\gcc\mingw32\3.4.5\collect2.exe => C:\MinGW\bin\collect2.exe
 
utilisez C:\MinGW\include et C:\MinGW\lib pour installer vos APIs

Quick translation:
Quote
- Install all MinGW packages in C:\MinGW http://www.mingw.org/download.shtml
- Install Code::Blocks without MinGW http://prdownloads.sourceforge.net [...] e?download
- Move the following files :
C:\MinGW\libexec\gcc\mingw32\3.4.5\cc1.exe => C:\MinGW\bin\cc1.exe
C:\MinGW\libexec\gcc\mingw32\3.4.5\cc1plus.exe => C:\MinGW\bin\cc1plus.exe
C:\MinGW\libexec\gcc\mingw32\3.4.5\collect2.exe => C:\MinGW\bin\collect2.exe
 
Use C:\MinGW\include and C:\MinGW\lib to install your APIs

i'm just translating, i don't use windows :D

that_dude_over_there

  • Guest
Re: Error compiling [Vista]
« Reply #6 on: October 16, 2007, 12:46:37 am »
YES! It worked! As far as I can tell, it's gonna work perfectly! Thanks to Ceniza for original post and Auria for the translation. Also thanks to everyone else for trying.

~TDOT> :shock:

icepik

  • Guest
Re: Error compiling [Vista]
« Reply #7 on: October 17, 2007, 12:58:27 am »

Use C:\MinGW\include and C:\MinGW\lib to install your APIs

what does it mens? im new user...

Offline Haf

  • Multiple posting newcomer
  • *
  • Posts: 12
    • Zentrum des Wahnsinns
Re: Error compiling [Vista]
« Reply #8 on: October 17, 2007, 01:16:59 am »

Use C:\MinGW\include and C:\MinGW\lib to install your APIs

what does it mens? im new user...

It means that when you use a third party library for your projects, like zLib, Ogre or sqlite for example, your should put the Header files of the library in the include folder and the lib files to the lib folder.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Error compiling [Vista]
« Reply #9 on: October 17, 2007, 08:17:55 am »
It means that when you use a third party library for your projects, like zLib, Ogre or sqlite for example, your should put the Header files of the library in the include folder and the lib files to the lib folder.
In general it's a bad idea to put all libs/includes into MinGW's lib/include folder. One day you will most certainly overwrite an important header file and you are lost in compiler errors. In addition updating to a new version of  the lib/framework will be much harder.
It's much better to install the API (libs, frameworks you use additionally) into an own folder, keep the folder structure as it is after an installation / unpacking. Then setup your project accordingly. This means: Add the path to the additional header files to your project, add the path to the additional libraries to you project and finally add the library to link against itself.
Where? -> Right click on project -> build options -> tab "search directories -> sub-tab "compiler" for additional path's to header files for the compiler, -> sub-tab "linker" for additional path's to library files for the linker and finally tab "linker settings", box "link libraries" for additional libraries to link against.
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ