Nothing to build

so this is a stupid question, but when i compile this it says tht there is nothins to build... i know the code doesnt really make any sense right now, i just wanted to make sure it would build before i continue


#ifndef ENTRIES_HPP_
#define ENTRIES_HPP_

#include <iostream>
#include<string>
#include <sstream>
#include <fstream>

using namespace std;



class Entries{

string song;

string author;

string genre;

string path;

Entries(song,author,genre,path);
~Entries;

void get_info(string song,string author, string genre,string path);
void print_info(Entries);
}
;

// @@@@@=============IMPLEMENTATION=============@@@@@


void Entries::get_info(string song,string author,string genre,string path){

string line, token;

ifstream inFile("music.txt");

if (inFile.is_open()) {
while (inFile.good()) {
getline(inFile, line);
stringstream ss(line);
while (ss >> token) {
}
inFile.close();
}
}
}

void Entries::print_info(Entries){



}

#endif /* ENTRIES_HPP_ */

int main() {
Entries a;

a.author = "";// got it working!!!
cout<<"Hello"<<endl;
return 0;
}
Last edited on
In the parameter list you need to specify the type for all the parameters
yea i realized that, but i just changed the info, can you help me out? it says nothing to build when i compile it, then when i run it it says binary not found

btw im using the Eclipse IDE
Last edited on
What OS are you using? On windows Eclipse is a bit of a turd, I've always had problems with it. The main reason is that it doesn't come with a compiler, so you need to install MingW and add the location on make.exe to your PATH file. This will allow it to compile in the Debug directory, and you can then run your program from a command prompt manually. However, if you try to run it from within eclipse you'll get "binaries not found" as the bloody thing doesn't know to look in the folder it created the program in.

I'm currently using Ubuntu 11.10 with Eclipse Indigo and it runs fine.
Last edited on
Topic archived. No new replies allowed.