This pile of codes here has no errors in it when being compiled. However, when I tried to build it, it says:
Code:
-------------- Build: Debug in Funtion2 ---------------
Linking console executable: bin\Debug\Funtion2.exe
collect2: cannot find `ld'
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
Here are my codes:
Code:
#include <iostream>
#include <string>
using namespace std;
void Test( string language, string hugeNumber);
int main()
{
string favourite = "C++";
string favourite2 = "Java";
Test( favourite, favourite2);
return 0;
}
void Test ( string language, string hugeNumber)
{
cout<< "I like "<< language<< hugeNumber;
}
Please someone help me out. Thanks in advance.
EDIT: I tried the following, but it still couldn't not work:
Code:
#include <iostream>
#include <string>
using namespace std;
void Test(std::string language, std::string hugeNumber);
int main()
{
std::string favourite = "C++";
std::string favourite2 = "Java";
Test(favourite,favourite2);
return 0;
}
void Test ( std::string language, std::string hugeNumber)
{
std::cout<< "I like "<< language<< hugeNumber;
}