View Full Version : A Compiling question....
MoonWalker
17th March 2004, 15:46
I have got a source code writen and compiled with gcc...When I try to coplile it with VC6.0 it doesn't compile, cause the compiler doesn't like some fuctions and structs..Is there any option than I could compile the prog with gcc under Windows (I have WinXP)??..I have downloaded MinGW but I don't have a clue how it works :rolleyes: ...Any help whould be appreciated.
Thanks in advance,
MoonWalker
Nic
17th March 2004, 17:58
That all depends...alot of things can be ported easily by downloading MinGW and MSYS (as the shell). Then goto MSYS, "cd" into the directory with the source and hit:
./configure
./make
Also you could try using the Intel Compiler than plugs into Visual Studio (that may help get rid of alot of the errors, as it's more like gcc)
What are you trying to compile?
-Nic
MoonWalker
17th March 2004, 23:51
Thanks for you reply Nic...
Well I am trying to compile a code (as a start) for a "Voice - Data Integration protocol over high capacity wireless channel"... It's a project for my university..But it was written for the gcc compiler so I can't compile it with VC++...There isn't a make file, just the source code file..I tried some things and now the compile is ok, but when the it comes to the linking part is sais :
Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/Code.exe : fatal error LNK1120: 1 unresolved externals. Don't know what that exactly mean (it's not a dll, it's an exe file)..
MoonWalker
jcsston
18th March 2004, 07:47
You could try adding /SUBSYSTEM:CONSOLE to the linker command-line.
The linker looks for different startup functions depending on the type of app it is.
console: main
windows: WinMain
int 21h
18th March 2004, 20:03
In VC++ change your project type to Console application instead of Windows application.
MoonWalker
18th March 2004, 20:42
Thanks both of you..
My problem is solved..I compiled the source :D
Best Regards,
MoonWalker
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.