1,105,232 Community Members

Dev c++ errors how can I fix?

Member Avatar
bryeguy2012
Newbie Poster
3 posts since Feb 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

The following errors popped up upon compiling is there a way to fix this in dev c++ ???
Please resond here or to <snip> Thank you.

\Dev-Cpp\lib\gcc\mingw32\3.4.2\include\syslimits.h [Warning] #include_next is a GCC extension <- I have mingw installed from the included updater in dev c++

C:\Dev-Cpp\include\sys\types.h ISO C++ does not support `long long' <-- this one came up alot

Member Avatar
Ancient Dragon
Achieved Level 70
27,583 posts since Aug 2005
Reputation Points: 5,232 [?]
Q&As Helped to Solve: 3,031 [?]
Skill Endorsements: 115 [?]
Team Colleague
Featured
Sponsor
 
0
 

You can't fix it with that compiler because that compiler version is too old. Get free Code::Blocks with MinGW (link here), which is current.

Member Avatar
bryeguy2012
Newbie Poster
3 posts since Feb 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

I will give that a try.

Member Avatar
bryeguy2012
Newbie Poster
3 posts since Feb 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

well it seems the code will not work in codeblocks. Do I need a convertor? I initially used dev c++.

Member Avatar
deceptikon
Eternally Awesome
4,675 posts since Jan 2012
Reputation Points: 1,341 [?]
Q&As Helped to Solve: 681 [?]
Skill Endorsements: 104 [?]
Administrator
Featured
 
0
 

well it seems the code will not work in codeblocks.

They use the same compiler, just different versions... And there's no way to say what you did wrong unless you post the code here.

Member Avatar
Ancient Dragon
Achieved Level 70
27,583 posts since Aug 2005
Reputation Points: 5,232 [?]
Q&As Helped to Solve: 3,031 [?]
Skill Endorsements: 115 [?]
Team Colleague
Featured
Sponsor
 
0
 

compiled ok for me

#include <iostream>

using namespace std;

int main()
{
    long long x = 123;
    cout << "Hello world! " << x << endl;
    return 0;
}
Member Avatar
jaskij
Junior Poster
105 posts since Oct 2011
Reputation Points: 45 [?]
Q&As Helped to Solve: 19 [?]
Skill Endorsements: 0 [?]
 
1
 

Ancient Dragon: there is actually a new version of Dev-C++, although not by Bloodshed. It contains MinGW GCC 4.6.2, so it should support most of the features even for C++11 ;)

http://sourceforge.net/projects/orwelldevcpp/

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article