The names of the libraries produced by the CMake build do not have
version/platform suffix such as "-4-1-0-d-x86" although it is not too
difficult to implement (patches are welcome =)). Therefore you have to
specify the libraries manually when linking and not rely on autolink (or
change the CMake script to produce these suffixes).

Best regards,
Victor


On Wed, Jul 31, 2013 at 2:21 AM, kTorpi <[email protected]> wrote:

> 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 [email protected] <[email protected]>
>
> 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" <[email protected]> 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 <[email protected]>
>>>
>>>>
>>>>
>>>> On Wed, Jul 24, 2013 at 8:37 AM, kTorpi <[email protected]> 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
>>> [email protected]
>>> https://www.gecode.org/mailman/listinfo/gecode-users
>>>
>>>
>
_______________________________________________
Gecode users mailing list
[email protected]
https://www.gecode.org/mailman/listinfo/gecode-users

Reply via email to