[LLVMdev] warnings for LLVM in MinGW

akramul azim bijoy123_8 at yahoo.com
Tue Mar 1 12:04:22 PST 2011


Hi,
    I can successfully build LLVM 2.8 with Clang 2.8 and LLVM 2.8 with LLVM-GCC 2.8 in Windows using MinGW. However, when I go for running a simple Hello World program, I get warnings. Using LLVM-GCC, the warning i get is the following:
 
C:\MinGW\bin/ld.exe: Warning: type of symbol `_main' changed from 32 to 512 in D
:/DOCUME~2/AZIM/LOCALS~1/Temp/ccnsGHVf.o
 
Using Clang, the warning i get is the following:
 
 C:/MinGW/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: Warning: type of symbol `_main' changed from 32 to 512 in C
:/DOCUME~2/AZIM/LOCALS~1/Temp/cc-000001.o
 
In both cases, the executable is produced and I can run the executable. I am wondering is there any way to fix the warnings.
 
Thanks,
Akramul

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110301/27fc17c3/attachment.html>


More information about the llvm-dev mailing list