C++ IDE

closed account (N04jz8AR)
I am using Mac OSX and I have been using Xcode and I HATE it. I need help finding a new IDE. I want it also to be a compiler and have OpenGL support. Thanks!
closed account (zqMDizwU)
Me 2 I just use Visual Studio on a Windows PC. I have a mac too it is a pain to code in mac.
Last edited on
I had the same problem. I have a mac and a PC. I love my mac but for C++ xcode is garbage. It's only good for Obj-C. You can try Code::Blocks for Mac but is also garbage because it doesn't even start. Make sure you're prepared to rage with CB when you get it for mac. Other than Xcode, I don't thin their are any other working mac C++ IDEs
closed account (z05DSL3A)
jazpen wrote:
... but for C++ Xcode is garbage.
Really?

All, I wouldn't mind hearing what it is that you hate/have problems with in Xcode.
eclipse is a good IDE, don't know if it support openGL or not
closed account (N04jz8AR)
I tried Code::Blocks but whenever I tried to build a project it said something like
"Directory not found. C:/somethingorother"
closed account (N04jz8AR)
Why I hate xcode is it gives you unreasonable errors such as "apple mach 0 error" I have no Idea what that even means
personally i loved xcode. and i hate HATE apple with a passion, but xcode is one of the pieces of software they wrote post macintosh that i actually like.

Why I hate xcode is it gives you unreasonable errors such as "apple mach 0 error" I have no Idea what that even means
then look it up. i learned almost every error (gc)c has to offer just because i would use gedit, compile, find out what lines are causing the errors, and then figure out what those errors mean pertaining to those lines. writing code shouldnt be that
closed account (N04jz8AR)
The problem is that it gives me no help with errors. Example here is the code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
//
//  main.cpp
//  GLSTUFF
//
//  Created by Nathan Medros on 4/19/14.
//  Copyright (c) 2014 Nathan Medros. All rights reserved.
//

#include <iostream>
#include <GLUT/glut.h>

using namespace std;

void init(int argc, char** argv){
    glutInit(&argc, argv);
    glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
    glutInitWindowSize(400, 400);
    glutCreateWindow("Introduction to OpenGL");
    glEnable(GL_DEPTH_TEST);
}
void handleResize(int w, int h){
    glViewport(0, 0, w, h);
    
    glMatrixMode(GL_PROJECTION);
    
    glLoadIdentity();
    gluPerspective(45.0, (double)w / (double)h, 1.0, 200.0);
    
}
void draw(){
    
    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    glMatrixMode(GL_MODELVIEW);
    glLoadIdentity();
    
    glVertex3f(-0.75f, -0.25f, -5.0f);
    
    glEnd();
    
    glBegin(GL_LINES);
    
    
    glVertex3f(-1.0f, 1.0f, -5.0f);
    glVertex3f(1.0f, -1.0f, -5.0f);
    
    glEnd();
    glBegin(GL_TRIANGLES);
    
    glVertex3f(1.5f, 1.0f, -5.0f);
    glVertex3f(1.0f, 0.0f, -5.0f);
    glVertex3f(0.5f, 1.0f, -5.0f);
    glEnd();
    
    glBegin(GL_QUADS);
    
    glVertex3f(-0.5f, -2.0f, -5.0f);
    glVertex3f(0.5f, -2.0f, -5.0f);
    glVertex3f(0.5f, -1.0f, -5.0f);
    glVertex3f(-0.5f, -1.0f, -5.0f);
    glEnd();
    glutSwapBuffers();

    
}
int main(int argc, const char * argv[])
{
    init(argc, argv); //Initialize rendering
    //Set functions for glutMainLoop to call
    glutDisplayFunc(draw);
    glutReshapeFunc(handleResize);

    glutMainLoop(); //Start the main loop. glutMainLoop doesn't return.
    return 0; //This line is never reached

}

And on init (line 67) it says No matching function for call to init.
Just a note. I am kind of a noob to c++
Last edited on
The problem is that it gives me no help with errors. Example here is the code:

thats the compiler. not the ide. it just reports the errors back to you and then point them out to you. if you dont like how it just tells you the errors, see my last post.

Just a note. I am kind of a noob to c++
dont blame the problems on xcode then. you have one, maybe two issues. the first is im pretty sure that is an improper set of args for main.

your second, (and im pretty sure its generating that apple mach 0 error based on this link: http://stackoverflow.com/questions/22894507/xcode-apple-mach-0-error ) is you are passing a const char *[] to a char **. remove the const from main
closed account (z05DSL3A)

The problem is that it gives me no help with errors. Example here is the code:
And on init (line 67) it says No matching function for call to init.

So line 67, you cal a function that the compiler/linker can not find. The likelihood is that init(...) either has a typo or by the looks of the other functions should be glutInit() (possibly I haven't use glut).
closed account (N04jz8AR)
Anyway can you guys just help me find a good IDE. I don't like xcode.
well what are you looking for in an ide? they are all pretty similar. i dont really like ides. thats why i use my own tools
closed account (z05DSL3A)
PlayerONE wrote:
Anyway can you guys just help me find a good IDE. I don't like Xcode.
The best thing you can do is Google "Mac C++ IDE" and see what you like the look of, download it and try it. It is imposable for us to say what you will like or get on with.
closed account (N04jz8AR)
I'm just compiling through the terminal but thanks anyways!
thats what i do. i love having my own tool set instead of an ide
Topic archived. No new replies allowed.