TGB1718 Posted April 27, 2021 Share Posted April 27, 2021 I'm trying to compile some code I wrote bitd using Lattice C V3.03.04, I'm getting a strange error on the link phase:- Undefined Symbol MAIN, all other functions are fine, I get the same result regardless of which file I try to compile/link, I know they have all compiled in the past. So I just wrote the standard "Hello World" program and I still get the same error on the link phase. The only think I can think is different now is I was originally working off floppy drives (possibly!! as I had a Syquest removable drive at one point which unfortunately no longer works) and now I run off a hard drive. It's not complaining about PATH's as I set these in the config file, just the MAIN procedure. Normally you don't define MAIN, but I tried with and without defining it, same result. Has anyone else seen/fixed this error. Quote Link to comment Share on other sites More sharing options...
mellis Posted April 27, 2021 Share Posted April 27, 2021 3 minutes ago, TGB1718 said: I'm trying to compile some code I wrote bitd using Lattice C V3.03.04, I'm getting a strange error on the link phase:- Undefined Symbol MAIN, all other functions are fine, I get the same result regardless of which file I try to compile/link, I know they have all compiled in the past. So I just wrote the standard "Hello World" program and I still get the same error on the link phase. The only think I can think is different now is I was originally working off floppy drives (possibly!! as I had a Syquest removable drive at one point which unfortunately no longer works) and now I run off a hard drive. It's not complaining about PATH's as I set these in the config file, just the MAIN procedure. Normally you don't define MAIN, but I tried with and without defining it, same result. Has anyone else seen/fixed this error. In C, the prototype for main() is: int main(int argc, char** argv); Where argc is the number of command line arguments, and argv is a pointer to an array of char*, where each pointer points to a command line argument. Quote Link to comment Share on other sites More sharing options...
TGB1718 Posted April 27, 2021 Author Share Posted April 27, 2021 Thanks, I should have said I tried all variants of MAIN(), they all fail Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.