|
|
|
|
|
|
$ g++ StudentProfileMain.cpp -o StudentProfileMain /tmp/ccC1cV8v.o:StudentProfileMain.cpp:(.text+0x1d3): undefined reference to `St udentProfile::StudentProfile()' /tmp/ccC1cV8v.o:StudentProfileMain.cpp:(.text+0x1d3): relocation truncated to fi t: R_X86_64_PC32 against undefined symbol `StudentProfile::StudentProfile()' /tmp/ccC1cV8v.o:StudentProfileMain.cpp:(.text+0x1f3): undefined reference to `St udentProfile::setName(std::string)' /tmp/ccC1cV8v.o:StudentProfileMain.cpp:(.text+0x1f3): relocation truncated to fi t: R_X86_64_PC32 against undefined symbol `StudentProfile::setName(std::string)' /tmp/ccC1cV8v.o:StudentProfileMain.cpp:(.text+0x21f): undefined reference to `St udentProfile::setMajor(std::string)' /tmp/ccC1cV8v.o:StudentProfileMain.cpp:(.text+0x21f): relocation truncated to fi t: R_X86_64_PC32 against undefined symbol `StudentProfile::setMajor(std::string) ' /tmp/ccC1cV8v.o:StudentProfileMain.cpp:(.text+0x24b): undefined reference to `St udentProfile::setTerm(std::string)' /tmp/ccC1cV8v.o:StudentProfileMain.cpp:(.text+0x24b): relocation truncated to fi t: R_X86_64_PC32 against undefined symbol `StudentProfile::setTerm(std::string)' /tmp/ccC1cV8v.o:StudentProfileMain.cpp:(.text+0x267): undefined reference to `St udentProfile::setMarks(double*)' /tmp/ccC1cV8v.o:StudentProfileMain.cpp:(.text+0x267): relocation truncated to fi t: R_X86_64_PC32 against undefined symbol `StudentProfile::setMarks(double*)' /tmp/ccC1cV8v.o:StudentProfileMain.cpp:(.text+0x273): undefined reference to `St udentProfile::displayProfile()' /tmp/ccC1cV8v.o:StudentProfileMain.cpp:(.text+0x273): relocation truncated to fi t: R_X86_64_PC32 against undefined symbol `StudentProfile::displayProfile()' collect2: error: ld returned 1 exit status |
g++ StudentProfileMain.cpp StudentProfile.cpp -o StudentProgram |
g++ -c StudentProfileMain.cpp g++ -c StudentProfile.cpp g++ StudentProfileMain.o StudentProfile.o -o StudentProgram |
$ g++ StudentProfileMain.cpp StudentProfile.cpp -o StudentProgram /tmp/ccthSiJe.o:StudentProfileMain.cpp:(.text+0x1d3): undefined reference ntProfile::StudentProfile()' /tmp/ccthSiJe.o:StudentProfileMain.cpp:(.text+0x1d3): relocation truncatedR_X86_64_PC32 against undefined symbol `StudentProfile::StudentProfile()' collect2: error: ld returned 1 exit status |