Author Topic: Unable to compile C++  (Read 15328 times)

idcarlos

  • Guest
Unable to compile C++
« on: March 01, 2006, 12:22:20 pm »
Hi.
I have instaled CB and C programs works OK

But when I try to make a build of a C++ code I see this:

Project   : WPM_GLADE
Compiler  : GNU GCC Compiler (called directly)
Directory : D:\CodeBlocks\WPM_GLADE\devcpp\
--------------------------------------------------------------------------------
Compiling: ..\src\main.cpp
mingw32-g++.exe: no input files
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

Why?
..\src\main.cpp it's ok and point to the correct path (D:\CodeBlocks\WPM_GLADE\src\)

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Unable to compile C++
« Reply #1 on: March 01, 2006, 12:26:50 pm »
Hello,

It is strange. With me it works fine.

Which version of C::B are you using? And which GCC version?

Best wishes,
Michael

idcarlos

  • Guest
Re: Unable to compile C++
« Reply #2 on: March 01, 2006, 12:29:10 pm »
CB 1 RC2

GCC is 3.4.4
24/05/2005  01:00            90.624 mingw32-g++.exe


Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Unable to compile C++
« Reply #3 on: March 01, 2006, 12:34:09 pm »
Ok, so you probably downloaded RC with MinGW bundled.

My advice would be to install MinGW 5.0.2 (eventually update it the new winapi32 and binutils header files. And may be with GCC 3.4.5). Then download the latest nightly build and install it. Nightly builds are much better as RC2 and quite stable (IMHO as stable as RC2 :D).

Best wishes,
Michael

idcarlos

  • Guest
Re: Unable to compile C++
« Reply #4 on: March 01, 2006, 12:55:22 pm »
Nightly builds are easy to update?
-Have diffs or I need entire CB?
-Install or only replace files?

In only 1 hour I have found some problems... ¿People use CB on windows or is focused for Linux?

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5490
Re: Unable to compile C++
« Reply #5 on: March 01, 2006, 01:03:49 pm »
really simple, do not mix with rc2 though : nightlies can overwrite each other

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Unable to compile C++
« Reply #6 on: March 01, 2006, 01:06:25 pm »
Nightly builds are easy to update?
-Have diffs or I need entire CB?
-Install or only replace files?

Nightly builds are easy to install. Just download it with the libraries you eventually need, unpack and run. Personally, I prefer to build it myself from SVN sources. You can post, if you have problems.

In only 1 hour I have found some problems... ¿People use CB on windows or is focused for Linux?

C::B is still in development. Anyway, it works very good and it is stable.

About Linux and Windows, it is a bit difficult to say. I would say that most of the users that use C::B have Windows XP (some Windows 2000/NT or Win98SE). Anyway, there is good number of Linux users too. And some with MacOSX... :D

C::B is cross-platform, so you can build and use it in Windows, Linux and MacOSX.

Best wishes,
Michael
« Last Edit: March 01, 2006, 01:08:33 pm by Michael »

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Unable to compile C++
« Reply #7 on: March 01, 2006, 01:07:51 pm »
though : nightlies can overwrite each other

Hmmm, I was not aware that with nightly builds this was possible.... :?

Ok, I will change my post :D.

Best wishes,
Michael

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5490
Re: Unable to compile C++
« Reply #8 on: March 01, 2006, 01:14:06 pm »
I mean : you can unpack them on top of the previous one.
The only time this might be a problem is when a certain plug-in would no longer be included, then the old one will not be overwritten and remaind in your plug-in dir ( and might get out of sync with the sdk).

idcarlos

  • Guest
Re: Unable to compile C++
« Reply #9 on: March 01, 2006, 04:13:29 pm »
Hi.

I have instaled 28/02/2006 build
All bugs that i have detected are fixed.

The project can't be compiled because I chande the XML file to replace the paths :oops:
I replace something like this
Code: xml
<Add directory='&quot;D:\Archivos de programa\Archivos comunes\GTK\2.0\include\gdkmm-2.4&quot;' />
With
Code: xml
<Add directory="..\..\include\gdkmm-2.4&quot;" />
And the project never work, without a good error msg...

This not it's a bug because I made a bad cbp file, but...
Lines in DEV-cpp like this:
"D:\Archivos de programa\Archivos comunes\GTK\2.0\include\gdkmm-2.4"
Are translated
Code: xml
<Add directory='&quot;D:\Archivos de programa\Archivos comunes\GTK\2.0\include\gdkmm-2.4&quot;' />
Any I thing that It's better
Code: xml
<Add directory="D:\Archivos de programa\Archivos comunes\GTK\2.0\include\gdkmm-2.4" />


   

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Unable to compile C++
« Reply #10 on: March 01, 2006, 06:30:50 pm »
Once again, I am thinking about encrypting the config file...
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Unable to compile C++
« Reply #11 on: March 01, 2006, 07:55:47 pm »
Any I thing that It's better
Code: xml
<Add directory="D:\Archivos de programa\Archivos comunes\GTK\2.0\include\gdkmm-2.4" />
It's not better. Path's with spaces need (!) to be quoted.
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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Unable to compile C++
« Reply #12 on: March 01, 2006, 07:56:19 pm »
Once again, I am thinking about encrypting the config file...
...but with an decryption key for "professionals". :lol:
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

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Unable to compile C++
« Reply #13 on: March 02, 2006, 01:04:09 am »
I wouldn't recommend encrypting it, it only complicates things.

You could instead, post a comment on the top of the config file and say "do *NOT* modify this file by hand! Manually modified configurations are NOT supported, use at your own risk!"

That ought to scare newbies :)

sethjackson

  • Guest
Re: Unable to compile C++
« Reply #14 on: March 02, 2006, 02:43:06 am »
I wouldn't recommend encrypting it, it only complicates things.

You could instead, post a comment on the top of the config file and say "do *NOT* modify this file by hand! Manually modified configurations are NOT supported, use at your own risk!"

That ought to scare newbies :)

Yeah.

encryption = bad (in this case)
« Last Edit: March 02, 2006, 02:53:55 am by sethjackson »