Click to See Complete Forum and Search --> : Getting linker errors on a new generated project


mburke
September 14th, 2003, 08:15 PM
I am trying to make a command line project in Kylix 3 C++ for Linux.

It generated a simple...

int main(int argc, char* argv[])
{
return 0;
}

But when I do a make on the poject I get many linker errors.

Unresolved external 'stderr'
Unresolved external 'fprintf'
Unresolved external 'malloc'

There are hundreds like these.

You would think that when an IDE generates a framework for you it would at least compile and run. I guess VC++ spoiled me. ~rolls eyes~

Andreas Masur
September 15th, 2003, 04:34 AM
Well...I have never used Kylix yet. However, it looks like the setting for the library path is not set correctly...thus it cannot find the C run-time libraries...

mburke
September 15th, 2003, 09:08 AM
All the paths look ok. They where set up in the install routine.

Maybe I should use a different flavor of Linux. It seems SuSe is off in left field somewhere.

mburke
September 15th, 2003, 09:22 AM
Is there a tutorial or book out there to help me set up a project. Perhaps I am not doing it right.

Andreas Masur
September 15th, 2003, 10:42 AM
I do not have one handy...however, you might want to try the Kylix newsgroups (http://info.borland.com/newsgroups/ng_kylix.html)...

mburke
September 15th, 2003, 12:47 PM
Ok, great. I will try that. Thanks :)

mburke
September 15th, 2003, 09:40 PM
Ok, it works now. I needed to download a patch. So I am up and running. Now I can get this project rolling :cool:

Andreas Masur
September 16th, 2003, 03:22 AM
Well...nice coding and good luck... :cool: