Jump to content
Eternal Lands Official Forums
Sign in to follow this  
Yoshi

Compiler Please ><

Recommended Posts

i need someone with a compiler to compile some games for me(dont worry..no trojans or anything..) because my compiler is just...well..screwed to damnnation :P

 

and Ann wont freaking wake UP!>#*#%!$#$ :D

 

Please *puppy dog eyes* ill put your name on the game xD :)

 

Noko :P

Share this post


Link to post
Share on other sites

i have reinstalled twice, used a different compiler..but no dice.

 

Its my libraries i think, i cant get it to work, it says Iostream and cout are not defined, and i clearly define them in:

using namespace std::cout;

 

-.- just making me mad...

Share this post


Link to post
Share on other sites
i have reinstalled twice, used a different compiler..but no dice.

 

Its my libraries i think, i cant get it to work, it says Iostream and cout are not defined, and i clearly define them in:

using namespace std::cout;

 

-.- just making me mad...

187695[/snapback]

Should that be:

using namespace std;

Share this post


Link to post
Share on other sites

well...here i clear things up a bit..ill post the code... its basic, but what do you expect from a beggining programer..

 

//lost fortune
//a personalized adventure

#include <iostream>
#include <string>

using std::cout;
using std::cin;
using std::endl;
using std::string;

int main()
{
   const int GOLD_PIECES = 900;
   int adventurers, killed, survivors;
   string leader;
   
   //get information
   cout << "Welcome to lost fortune\n\n";
   cout << "please enter the following for your personalized adventure\n";
   
   cout << "enter a number: ";
   cin >> adventurers;
   
   cout << "enter a smaller number than the first: ";
   cin >> killed
       
   survivors = adventurers - killed;
   
   cout << "enter your last name: ";
   cin >> leader;
   
   //tell the story
   cout << "\nA brave group of " << adventurers << " set out on a quest ";
   cout << "- in search of the lost treasure of Ancient dwarves. ";
   cout << "The group was lead by the Legendary rouge, " << leader << ".\n";
   
   cout << "\nAlong the way, a band of Marauding orges ambushed the party. ";
   cout << "All fought bravely under the command of " << leader;
   cout << ", All the orges were defeated, but at a cost. ";
   cout << "Of the Adventurers, " << killed << " were vanquished, ";
   cout << "leaving just " << survivors << " in the group.\n";
   
   cout << "\nThe party was about to give up all hope. ";
   cout << "But while laying the deceased to rest, ";
   cout << "they stumbled upon the buried fortune. ";
   cout << "So the adventurers spilt " << GOLD_PIECES << " gold pieces.";
   cout << leader << " held in to the extra " << (GOLD_PIECES % survivors);
   cout << " pieces to keep things fair ofcourse.\n";
   
   return 0;
}

Share this post


Link to post
Share on other sites

Compiled fine for me on Cygwin using g++

Although I had to add a ; at the end of one of the lines :P

 

Executable && Source file

 

 

[EDIT]

Ummm, I just realised, you'll need cygwin to run that...more than likely... :D

 

Sorry... ;)

Share this post


Link to post
Share on other sites
I have cygwin installed, and it still doesn't work. Missing a .dll.

188594[/snapback]

Yeah its looking for cygwin-XX.dll, which probably isn't in the same location in your installation.

Share this post


Link to post
Share on other sites

I cut'n'pasted the code into a new project on my copy of Bloodshed 4.9.9.2.

 

After adding the ';' that Placid mentioned it compiled fine, and also ran fine.

 

I don't have cygwin on this box, and didn't need any special libraries.

 

Note that the code only uses stdin and stdout, so it should work just fine in a

Windows console with just the standard libraries.

 

To take this further we will need to know the platform (Windows? and if so which?)

and the compiler used. Also the *exact* error message you got.

Share this post


Link to post
Share on other sites

I managed to compile it find in Dev C++

 

The links in my previous post work fine, so download the exe from there.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×