Emacs compiling errors (init.csh)

tkdragon

Registered
Newbie...

Trying to compile simple app with Emacs...error as follows:

tcsh: /sw/bin/init.csh: No such file or directory.
ld: Undefined symbols:
_main

any suggestions?
 
tkdragon said:
Newbie...

Trying to compile simple app with Emacs...error as follows:

tcsh: /sw/bin/init.csh: No such file or directory.
ld: Undefined symbols:
_main

any suggestions?
I do not know your specfice problem but usually I have found when compliling unix apps check to make sure your path stmt is OK. I have found when compiling things as root I have always have to add certain paths to the path stmt. If the directory in question exists then see if that path is part of your path stmt. Type echo $PATH.

Another suggestions just my personal pref. Use the vi editor. It exists everywhere on UNIX.


calliex
 
Don't use vi it is 3vil! ;-)

The first thing I can see from the above is that you either have a screwed up shell or a screwed up fink installation. What version of OSX are you using and can you get the compile to work from the command line?
 
tkdragon said:
Newbie...

Trying to compile simple app with Emacs...error as follows:

tcsh: /sw/bin/init.csh: No such file or directory.
ld: Undefined symbols:
_main

any suggestions?
The ld: Undefined symbols:
_main

part means that you didn't define a int main() routine in your code. And if you think you did, check your spelling of "main". Thirdly, it might have to have an argument list like this:

int main(int argv, char* argc[])
 
Back
Top