I tried compiling a C program compiled by Gambit C.
My compiler is Visual C++ 2010 Express Edition.
I'm getting this error: "unresolved external symbol ____G__20_h".
I included the steps I did to create the VC++ project below.
Please point out any mistakes.
Thanks.
-Fiel
Compiler error messages:
1>------ Rebuild All started: Project: h, Configuration: Debug Win32 ------
1> Performing Custom Build Tools
1> stdafx.cpp
1> h.c
1>d:\user directories\user\documents\visual studio 2010\projects\h\h\h.c(103): warning C4102: '___L3__20_h' : unreferenced label
1>d:\user directories\user\documents\visual studio 2010\projects\h\h\h.c(100): warning C4102: '___L2__20_h' : unreferenced label
1>d:\user directories\user\documents\visual studio 2010\projects\h\h\h.c(98): warning C4102: '___L1__20_h' : unreferenced label
1>d:\user directories\user\documents\visual studio 2010\projects\h\h\h.c(92): warning C4102: '___L__20_h' : unreferenced label
1>d:\user directories\user\documents\visual studio 2010\projects\h\h\h.c(89): warning C4102: '___L0__20_h' : unreferenced label
1>d:\user directories\user\documents\visual studio 2010\projects\h\h\h.c(80): warning C4101: '___s64_temp' : unreferenced local variable
1>d:\user directories\user\documents\visual studio 2010\projects\h\h\h.c(80): warning C4101: '___s32_temp' : unreferenced local variable
1>d:\user directories\user\documents\visual studio 2010\projects\h\h\h.c(80): warning C4101: '___u64_temp' : unreferenced local variable
1>d:\user directories\user\documents\visual studio 2010\projects\h\h\h.c(80): warning C4101: '___u32_temp' : unreferenced local variable
1> gambit.c
1> Generating Code...
1>h.obj : error LNK2001: unresolved external symbol ____G__20_h
1>d:\user directories\user\Documents\Visual Studio 2010\Projects\h\Debug\h.exe : fatal error LNK1120: 1 unresolved externals
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Here are the steps I took to create the Visual C++ project:
1. Project-wide settings (project type is unmanaged win32 console application):