Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
G++ in C program???
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: G++ in C program??? (Read 4354 times)
virtual008
Single posting newcomer
Posts: 3
G++ in C program???
«
on:
June 06, 2008, 11:46:53 am »
I just installed code::blocks and it wouldn't compile a C program without g++.I'm confused does code::blocks use G++ in C or is it just a dependency error?
Logged
dje
Lives here!
Posts: 682
Re: G++ in C program???
«
Reply #1 on:
June 06, 2008, 11:59:12 am »
Hi !
Did you use the .c extension and not .cpp ?
Did you check your toolchain ?
Dje
Logged
virtual008
Single posting newcomer
Posts: 3
Re: G++ in C program???
«
Reply #2 on:
June 07, 2008, 03:26:17 am »
Yes I used .c for my files and after I installed G++ it worked fine.I don't think it uses G++ because I tried to use classes and templates to test it and it had C90 warnings.I just was just wondering why It needed G++ for a C program.
Thanks for replying
«
Last Edit: June 07, 2008, 03:30:04 am by virtual008
»
Logged
Ceniza
Developer
Lives here!
Posts: 1441
Re: G++ in C program???
«
Reply #3 on:
June 07, 2008, 08:27:57 am »
IIRC, it's because Code::Blocks links your files using the g++ executable. If that's really the reason, just modify the toolchain executables in the Compiler settings to use gcc instead of g++ to link.
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
G++ in C program???