#116589 - viper110110 - Sat Jan 27, 2007 4:59 am
i have no idea what to do
i have programmed in c++ before, however i am still lost
i set up visuaal studio using the following
http://www.devkitpro.org/devstudio.shtml
i also got the gcc compiler thingy but didn't do anything with it
can someone please help me get started?
#116616 - QuantumDoja - Sat Jan 27, 2007 12:17 pm
Hi, have you got any source code you can show us that you are trying to compile?
_________________
Chris Davis
#116655 - viper110110 - Sat Jan 27, 2007 11:04 pm
ya, but it's just the default stuff that came when i made a .cpp file
i haven't made any changes yet
game.h
Quote: |
// game.h: interface for the game class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_GAME_H__EA80D0EB_B239_4CE1_9250_F63CD5757564__INCLUDED_)
#define AFX_GAME_H__EA80D0EB_B239_4CE1_9250_F63CD5757564__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class game
{
public:
game();
virtual ~game();
};
#endif // !defined(AFX_GAME_H__EA80D0EB_B239_4CE1_9250_F63CD5757564__INCLUDED_)
|
game.cpp
Quote: |
// game.cpp: implementation of the game class.
//
//////////////////////////////////////////////////////////////////////
#include "game.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
game::game()
{
}
game::~game()
{
}
|
#116663 - PeterM - Sun Jan 28, 2007 1:02 am
Try checking the examples which come with DevkitPro.
_________________
http://aaiiee.wordpress.com/
#116670 - viper110110 - Sun Jan 28, 2007 2:35 am
my problem is all the examples are in C and i can only proram in C++
#116671 - viper110110 - Sun Jan 28, 2007 2:36 am
i just realised that the above code is my makefile
#116680 - PhoenixSoft - Sun Jan 28, 2007 7:50 am
That appears to be managed C++. Do you know how to use unmanaged C++ features such as pointers, references, etc?
#116701 - QuantumDoja - Sun Jan 28, 2007 3:12 pm
...this is no help at all...Im surprised c++ programmers dont know c.....
_________________
Chris Davis
#116710 - tepples - Sun Jan 28, 2007 6:16 pm
Anybody who knows all of C++ knows enough C to write a C program. It's just that some C++ programmers don't know the underlying procedural methods used to implement what passes for object orientation in C++. (Clue 1: a jump table for every class.)
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#116773 - Kyoufu Kawa - Mon Jan 29, 2007 10:56 am
viper110110 wrote: |
i just realised that the above code is my makefile |
...
...excuse me while I piss myself laughing.
Okay that was just retarded. This viper fella claims to program in C++ yet doesn't even know what a makefile is? Cos the only thing I see here is code.
Code that does absolutely nothing, but still...
So yeah. At the risk of sounding like an ass... stop dreaming, viper. Read a book.
#116774 - Vich - Mon Jan 29, 2007 11:05 am
viper110110 wrote: |
my problem is all the examples are in C and i can only proram in C++ |
C++ is a superset of C, so if you don't know the basics of C, you don't know C++ either.
PhoenixSoft wrote: |
That appears to be managed C++. Do you know how to use unmanaged C++ features such as pointers, references, etc? |
That's just C++, nothing points out that it's managed as far as I know. The only weird thing is that he just posted an empty class, which doesn't make sense.
QuantumDoja wrote: |
...this is no help at all...Im surprised c++ programmers dont know c..... |
That's probably because they're not C++ programmers :P
_________________
[project website] [personal website]
#116778 - keldon - Mon Jan 29, 2007 11:54 am
He says that he 'has programmed in c++ before'. So I would suggest checking the FAQ in the beginners forum, and looking at the makefile tutorial.
#116792 - tepples - Mon Jan 29, 2007 7:45 pm
Kyoufu Kawa wrote: |
Okay that was just retarded. This viper fella claims to program in C++ yet doesn't even know what a makefile is? Cos the only thing I see here is code. |
I programmed in BASIC and C long before I had heard of makefiles. I just used the internal project format of whatever IDE I happened to be using at the time, be it Turbo C++ or Visual Studio or RHIDE. I got into makefiles only later.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#116793 - keldon - Mon Jan 29, 2007 7:51 pm
Very true, and you don't need makefiles for java development either!
#116837 - PhoenixSoft - Tue Jan 30, 2007 3:32 am
Vich wrote: |
PhoenixSoft wrote: | That appears to be managed C++. Do you know how to use unmanaged C++ features such as pointers, references, etc? |
That's just C++, nothing points out that it's managed as far as I know. The only weird thing is that he just posted an empty class, which doesn't make sense. |
It looks to me like a template program created automatically from Visual C++, that's why I thought that. Also the fact that it mentions AFX. But I don't know much about Windows programming; I'm almost exclusively a console coder.
#120864 - Dracker - Tue Mar 06, 2007 9:36 pm
Your best bet is to learn about make and gcc.
That's what most (all?) of us use.
You can use Visual Studio or whatever editor you like to write your code. But to compile it, you'll need to use devkitARM, which means ... make and gcc, pretty much ;)
_________________
--Drack
Onyx DS Lite, M3 Perfect Lite, Flashme V7, Flashed using SocketMe
Gamecube DOL-001 with Qoob Pro
Wii, not modded.