Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: idcarlos on March 01, 2006, 12:22:20 pm

Title: Unable to compile C++
Post by: idcarlos 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\)
Title: Re: Unable to compile C++
Post by: Michael 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
Title: Re: Unable to compile C++
Post by: idcarlos 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

Title: Re: Unable to compile C++
Post by: Michael 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
Title: Re: Unable to compile C++
Post by: idcarlos 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?
Title: Re: Unable to compile C++
Post by: killerbot on March 01, 2006, 01:03:49 pm
really simple, do not mix with rc2 though : nightlies can overwrite each other
Title: Re: Unable to compile C++
Post by: Michael 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
Title: Re: Unable to compile C++
Post by: Michael 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
Title: Re: Unable to compile C++
Post by: killerbot 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).
Title: Re: Unable to compile C++
Post by: idcarlos 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" />


   
Title: Re: Unable to compile C++
Post by: thomas on March 01, 2006, 06:30:50 pm
Once again, I am thinking about encrypting the config file...
Title: Re: Unable to compile C++
Post by: MortenMacFly 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.
Title: Re: Unable to compile C++
Post by: MortenMacFly 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:
Title: Re: Unable to compile C++
Post by: rickg22 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 :)
Title: Re: Unable to compile C++
Post by: sethjackson 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)
Title: Re: Unable to compile C++
Post by: idcarlos on March 06, 2006, 09:57:36 pm
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 :)

Ok, It's the last time that I touch the config file  :lol:

Un saludo
Carlos Garces
P.D. Uhh.... Regedit, looks funny... I will try to test it
Title: Re: Unable to compile C++
Post by: Pecan on March 07, 2006, 01:54:53 am
Ok, It's the last time that I touch the config file  :lol:

Un saludo
Carlos Garces
P.D. Uhh.... Regedit, looks funny... I will try to test it

There's also a program on the "Major Geeks" site that allows
you to set some values in your AMD and Intel processor and
motherboard. Set the fan speeds, tempature, processor clocking,
register widths etc ...

Fun! Fun! Fun! Go for it. Tell us how it goes... :D


Title: Re: Unable to compile C++
Post by: idcarlos on March 07, 2006, 09:19:40 am
There's also a program on the "Major Geeks" site that allows
you to set some values in your AMD and Intel processor and
motherboard. Set the fan speeds, tempature, processor clocking,
register widths etc ...

Fun! Fun! Fun! Go for it. Tell us how it goes... :D

Fan speeds? I don't need fans, my computer is under oil  8)
http://www.tomshardware.com/2006/02/02/strip_out_the_fans/ (http://www.tomshardware.com/2006/02/02/strip_out_the_fans/)
Title: Re: Unable to compile C++
Post by: w2vy on March 15, 2006, 09:28:30 pm
C::B is still in development. Anyway, it works very good and it is stable.

If the nightly builds are so stable and much better when may there be a RC3?

tom
Title: Re: Unable to compile C++
Post by: TDragon on March 15, 2006, 09:44:08 pm
See that text box in the upper right of the page with the Search button next to it? Navigate to the forum root (the "Home" tab) and search for "release" to view a myriad of previous posts in which this question was asked. The answer, hopefully, you will glean for yourself.
Title: Re: Unable to compile C++
Post by: w2vy on March 15, 2006, 10:06:49 pm
See that text box in the upper right of the page with the Search button next to it? Navigate to the forum root (the "Home" tab) and search for "release" to view a myriad of previous posts in which this question was asked. The answer, hopefully, you will glean for yourself.

(oh no, make me work... next I will be told RTFM)

:)
Title: Re: Unable to compile C++
Post by: TDragon on March 15, 2006, 10:24:08 pm
No such luck, no FM for you to R yet. Have to write it...