[gecode-users] Compilation error
Christian Schulte
cschulte at kth.se
Fri Mar 26 15:26:19 CET 2010
Please make sure that you first try a pristine program that is included in
"Modeling with Gecode". Only after you got that to compile move on to your
on stuff.
The reason could be either: you forgot a main function in your program, or
you have still wrong compiler options (for linking, or you forgot /MD or
/MDd). So more reading in that case.
Christian
--
Christian Schulte, www.ict.kth.se/~cschulte/
From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf
Of anusha rani
Sent: Friday, March 26, 2010 9:27 AM
To: users at gecode.org
Subject: Re: [gecode-users] Compilation error
Hi Mikael,
Now i have solved problem with includes. But i am getting another error. I
have gone through all the instructions at www.gecode.org
<http://www.gecode.org/> and the pdf document but i can't resolve this
problem
1>------ Build started: Project: sendmoney, Configuration: Debug Win32
------1>Linking...
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol
_WinMain at 16 referenced in function ___tmainCRTStartup
1>Debug\sendmoney.exe : fatal error LNK1120: 1 unresolved externals
1>Build log was saved at "file://c:\Program
Files\Gecode\include\CPLUS\Debug\BuildLog.htm"
1>sendmoney - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Tack så mycket,
MVH
Anusha.
On Thu, Mar 25, 2010 at 11:09 PM, anusha rani <anusha.maneru at gmail.com>
wrote:
Hi
I am trying to compile and run send-more-money.cpp. I have installed Gecode
3.3.2 and configured it on Visual c++ 2008. But i m getting the following
error.
1>------ Build started: Project: sendmoremoney, Configuration: Debug Win32
------
1>Compiling...
1>cl : Command line warning D9035 : option 'Wp64' has been deprecated and
will be removed in a future release
1>send-more-money.cpp
1>.\send-more-money.cpp(28) : fatal error C1083: Cannot open include file:
'gecode/int.hh': No such file or directory
1>Build log was saved at "file://c:\cygwin\CPLUS\Debug\BuildLog.htm"
1>sendmoremoney - 1 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Could you help me to find out where i am doing worng ?
Thanks in advance
MVH
Anusha.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20100326/eeaa2d4f/attachment.htm>
More information about the users
mailing list