Gecode on Windows does not support static libraries, you have to use DLLs
instead.

 

Best

Christian

 

--

Christian Schulte, www.ict.kth.se/~cschulte

 

From: users-boun...@gecode.org [mailto:users-boun...@gecode.org] On Behalf
Of kTorpi
Sent: Wednesday, July 31, 2013 11:22 AM
To: victor.zverov...@gmail.com
Cc: users@gecode.org
Subject: Re: [gecode-users] compilation without cygwin

 

Thanks Victor! It almost works. :)

I generated VS 10.0 build files with cmake, and I could build static gecode
libs with it, which is exactly what I need. But I have a problem with
linking these libs with my application. This build process generetes only a
support/config.hpp file. I copied this file into gecode/support dir which I
founded in the downloaded source of gecode, and I used this dir (gecode dir)
as the includes

 directory.

My program compiles this way, but during linkage I get "cannot open file
'GecodeSupport-4-1-0-d-x86.lib'" message, which is no wonder cause the
builded gecode libs has named like "gecodesupport.lib". I tried to rename
the .lib files (concat version, architecture and r/d information) and also
hacked the support/auto-link.hpp file, but no success, linker complains
about bad lib format.

Any ideas?

Thanks in advance,

Steve

 

2013/7/26 victor.zverov...@gmail.com <victor.zverov...@gmail.com>

You can build Gecode with cl/Visual C++ using CMake. This doesn't require
Cygwin.

HTH,
Victor

On Jul 25, 2013 4:21 PM, "kTorpi" <kto...@gmail.com> wrote:

Hi,

 

Thank you, but I don't think so.

I'd like to compile the gecode itself. In Section 2.6.2 it is mentioned,
that "For Windows, we require Cygwin environment...", but I'd like to
compile gecode without it.

 

Thank you,

Steve

 

2013/7/24 Gustavo Gutierrez <gustavo.ggutier...@gmail.com>

 

On Wed, Jul 24, 2013 at 8:37 AM, kTorpi <kto...@gmail.com> wrote:

Hi, 

Is there someone who tried to compile gecode under windows without using
cygwin? I'd like to compile it with cl natively somehow. Is it possible? 

 

Seems like section 2.3.1 of the following document is what you are looking
for.

 

http://www.gecode.org/doc-latest/MPG.pdf

 

 

Regards,

-- 
Gustavo Gutierrez 

 

 

_______________________________________________
Gecode users mailing list
users@gecode.org
https://www.gecode.org/mailman/listinfo/gecode-users

 

_______________________________________________
Gecode users mailing list
users@gecode.org
https://www.gecode.org/mailman/listinfo/gecode-users

Reply via email to