We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,703 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Dev c++ errors how can I fix?

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

4
Contributors
6
Replies
1 Day
Discussion Span
1 Year Ago
Last Updated
7
Views
bryeguy2012
Newbie Poster
3 posts since Feb 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 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.

Ancient Dragon
Achieved Level 70
Team Colleague
32,274 posts since Aug 2005
Reputation Points: 5,852
Solved Threads: 2,590
Skill Endorsements: 70

I will give that a try.

bryeguy2012
Newbie Poster
3 posts since Feb 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

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

bryeguy2012
Newbie Poster
3 posts since Feb 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 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.

deceptikon
Challenge Accepted
Administrator
3,499 posts since Jan 2012
Reputation Points: 822
Solved Threads: 481
Skill Endorsements: 58

compiled ok for me

#include <iostream>

using namespace std;

int main()
{
    long long x = 123;
    cout << "Hello world! " << x << endl;
    return 0;
}
Ancient Dragon
Achieved Level 70
Team Colleague
32,274 posts since Aug 2005
Reputation Points: 5,852
Solved Threads: 2,590
Skill Endorsements: 70

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/

jaskij
Junior Poster
106 posts since Oct 2011
Reputation Points: 55
Solved Threads: 19
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.0707 seconds using 2.67MB