[gecode-users] Linking Error Involving GecodeSupport-3-3-1-r-x86.lib

Dan Scott Dan.Scott at aisystems.org
Wed Jun 16 18:45:18 CEST 2010


Hi,

I am a (very) new Gecode user.  I am trying to compile and run the
send-more-money.cpp example following the direction in section 2.3.1 of
the "Modeling and Programming with Gecode" guide.  I am using Gecode
3.3.1 that I installed from Gecode-3.3.1-x64.msi, and I am running under
Windows XP Professional x64 Edition, using Visual Studio 2008.

 

When I compiled send-more-money.cpp I had some minor issues with
specifying the correct include directories, but I dealt with that okay,
and successfully created send-more-money.obj.  But, I cannot seem to get
the linking to work, as it complains that it is unable to open
GecodeSupport-3-3-1-r-x86.lib  That file does not exist on my system.
Instead, I have GecodeSupport-3-3-1-r-x64.lib, which makes sense.  But
why isn't it trying to link against *this* file?  How can I correct
this?  Do I need to be changing some commands to make it aware of the
fact that this is a 64-bit system, or something?

 

The command line compiling and linking text is reproduced below (sorry
about the lousy line breaks...)

 

Thanks for any assistance,

-Dan-

 

 

Compiling (This seemed to work okay, but I thought it might possibly be
relevant):

---------------

 

D:\Installs\Gecode>cl /DNDEBUG /EHsc /MD /Ox /wd4355
-I"%GECODEDIR%\include" -I"

C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include"
-I"C:\Program Fil

es\Microsoft SDKs\Windows\v6.1\Include" -c -Fosend-more-money.obj
-Tpsend-more-m

oney.cpp

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01
for 80x86

Copyright (C) Microsoft Corporation.  All rights reserved.

 

send-more-money.cpp

 

 

Linking (Here is where the error occurred):

-----------

 

D:\Installs\Gecode>cl /DNDEBUG /EHsc /MD /Ox /wd4355
-I"%GECODEDIR%\include" -Fe

send-more-money.exe send-more-money.obj /link /LIBPATH:"%GECODEDIR%\lib"
/LIBPAT

H:"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib"

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01
for 80x86

Copyright (C) Microsoft Corporation.  All rights reserved.

 

Microsoft (R) Incremental Linker Version 9.00.30729.01

Copyright (C) Microsoft Corporation.  All rights reserved.

 

/out:send-more-money.exe

"/LIBPATH:C:\Program Files\Gecode\\lib"

"/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib"

send-more-money.obj

LINK : fatal error LNK1104: cannot open file
'GecodeSupport-3-3-1-r-x86.lib'

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20100616/d551b809/attachment.htm>


More information about the users mailing list