Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Dev C++ HELP
Index -> Programming, C++ -> C++ Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
eNc




PostPosted: Fri Jun 11, 2004 4:23 pm   Post subject: Dev C++ HELP

Umm im starting to learn C++, Im totally nub to it, however I know turing.
umm when i installed this program and created my sprgram, exactly the same form the tutorial book i have written my hello world proggy but it won't run. I compiled but it won't run. this is my proggy
code:
#include <mingw32>
int main()
{
std::cout << "Hello World!\n";
return 0;
}


so yea
umm and the
compile log says


Compiler: Default compiler
Executing g++.exe...
g++.exe "C:\Dev-Cpp\HelloWorld.cpp" -o "C:\Dev-Cpp\HelloWorld.exe" -fdollar-in-identifiers -fsave-memoized -fexceptions -fshort-double -fverbose-asm -pg -lobjc -g3 -I"C:\Dev-Cpp\include\c++" -I"C:\Dev-Cpp\include\c++\mingw32" -I"C:\Dev-Cpp\include\c++\backward" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"

if thats any use and
under the compiler tab

2 C:\Dev-Cpp\2
unable to run program file.

so im like wtf!!!! Confused

i think it has something to do with the liker and the library files... can someone please tell me how to set this up its annoying as hell


IM DESPARATE !! HELP

when i click debug it says source file not completed so im like WTFFF !!!!!!AHHHHH
Sponsor
Sponsor
Sponsor
sponsor
wtd




PostPosted: Fri Jun 11, 2004 11:04 pm   Post subject: (No subject)

Create a text file in Notepad called "test.cpp". Copy and paste the following into it:

code:
#include <iostream>

int main()
{
   std::cout << "Hello world!" << std::endl;
   return 0;
}


Go to Start -> Run. Type "cmd".

CD to wherever you saved the file. Type:

code:
g++ test.cpp -o testprogram


Then to run the program type:

code:
testprogram


Bloody IDEs make things far more complex than they have to be, and that backfires tremendously when anything goes wrong.[/code]
eNc




PostPosted: Sat Jun 12, 2004 2:10 pm   Post subject: (No subject)

Uhh not working... its tells me that it doesn't recognize 'g++' :S

help please i want to get started on the tuts !



fuckt.jpg
 Description:
 Filesize:  357.83 KB
 Viewed:  11668 Time(s)

fuckt.jpg


wtd




PostPosted: Sat Jun 12, 2004 8:29 pm   Post subject: (No subject)

Apparently it didn't install the compiler. Odd. As I said before: bloody IDEs. Always make students think programming is harder than it really is.


An installer for the compiler Dev-Cpp uses.

And in the meantime, try playing with less tiresome languages.

An easy installer for Ruby on Windows.

Seek Ruby information and tutorials at rubycentral.com.
eNc




PostPosted: Sun Jun 13, 2004 10:58 am   Post subject: (No subject)

you recommend ruby after turing ?????
wtd




PostPosted: Sun Jun 13, 2004 1:32 pm   Post subject: (No subject)

I'd easily recommend Ruby as an intro language. Smile

Be glad I didn't recommend the language I'm currently torturing myself with, O'Caml.
Display posts from previous:   
   Index -> Programming, C++ -> C++ Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: