User forums > Help

C::B won't build my C++ file

<< < (2/3) > >>

MortenMacFly:
You can also first verify if g++ is installed by typing g++ on the command line and see what happens (assuming you are on Linux).

iamunited:
Windows 7 32 bit

stahta01:
Try

Logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"

Is it using gcc or g++ to compile?

Tim S.

iamunited:
It's using GNU GCC Compiler.

MortenMacFly:

--- Quote from: iamunited on January 28, 2010, 06:46:42 pm ---It's using GNU GCC Compiler.

--- End quote ---
Could it be that you are trying to compile a C++ application with a file extension *.c? This won't work. You cannot compile C++ code with a C compiler. You'll either need to comply with the standard and use e.g. *.cpp as file extension for C++ or you'll need to set the compiler variable for this very file in the file properties explicitly. The latter is not very convenient.

nevertheless, I am still missing a lot important information:
- What C::b version,
- what compiler version,
- what's the EXACT full compiler log?

If you don't want to provide enough information I can't (and won't) help you.

Look: You are basically asking "My code doesn't compile". this can have 1 million reasons, e.g. missing access rights, too. To tell we need more information.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version