Question on link error

Hello, Ted

__main is supposed to be inside hello.bc, so why can’t lli find it?

No, it shouldn't be there. On targets, which lacks init sections (for
example, all win-based, like mingw & cygwin) __main is used to call
static constructors and relevant stuff.

The call to __main is assembled early in the main routine before the
actual code will be executed. I'll try to look into this problem today.

I am *more* than willing to believe it's an environment/configuration error,
so if you can't repro it, let's assume the problem is somewhere on my end.

FWIW, I took the 2.2 release from the website, the GCC 4.2 release from the
website, and tried to follow the README.LLVM directions (build LLVM 2.2,
configure gcc in the obj directory, make and make install), then ran through
the hello steps. Only the lli step fails.

Ted Neward
Java, .NET, XML Services
Consulting, Teaching, Speaking, Writing
http://www.tedneward.com

Any insights?

Ted Neward
Java, .NET, XML Services
Consulting, Teaching, Speaking, Writing
http://www.tedneward.com