[LLVMdev] Linker problems with Visual Studio
Morten Ofstad
morten at hue.no
Thu Oct 14 02:59:42 PDT 2004
I finally managed to compile a working fibonacci example (using the
interpreter, I'm still working on porting the x86 backend). The final
problem was that I couldn't find a way to force the linker to include
the Dominators.obj file since there were no references to it. There is
an option to the linker to stop it from stripping unreferenced code, but
it still doesn't pull the object file in from the library unless there
are some references.
In the end I opted for the ugly IncludeFile() trick which is used
elsewhere in the code, I include a patch with this mail. If someone has
any better suggestions for how to fix this, I am all ears...
The other areas which have to be resolved is the struct/class debacle
and also the hash_map usage (I am using the Visual Studio STL library)
-- my fix for the hash_map thing is too ugly to go in, so I won't even
bother to submit a patch. Unfortunately I have to link LLVM with our own
app which is using the MS STL, so resorting to using a STL library more
similar to GCC is probably not an option.
There are some other minor things I plan to submit patches for later
today, when I have cleaned up. If anyone else is interested in obtaining
my VS project files, please write me an email...
m.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diff.txt
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20041014/f21975d2/attachment.txt>
More information about the llvm-dev
mailing list