Any type of project will suffice for gecode. We cannot read your mind,
however. You need to be specific about what error you got.


On 27 May 2013 13:03, manel askri <askri.man...@gmail.com> wrote:

> One other thing : when i use a new project ->empty project i can build the
> project successufly and i got the . exe file , but when i use application
> console Win32 i got an error in building ???? is there any deffrence betwen
> the tow of theme ?? and if i want to use prompt commande what type of
> project should i chose??
>
> Thanks verry much for any help
>
> ASKRI Manel
>
>
> 2013/5/27 manel askri <askri.man...@gmail.com>
>
>> hi
>>
>> I use windows 7 x86 , and i did what you have told me to do step by step
>> it worked and it tels me Build succeeded
>> But when i try to compile with the VS commande prompt the some error
>> comes again.
>> this is what i did exactly:
>>
>> 1- after i build it successufly, i opned the Commande prompt and i set :
>> cd C:\Users\abdelhalim\Documents\Visual Studio 2010\Projects\Carre\Carre (
>> there where my class .vcxproj is )
>> 2- i set this commande line : cl /DNDEBUG /EHsc /MD /Ox /wd4355 
>> -I"%C:\program
>> files\Gecode%\include" -c -FoCarre.obj -TpCarre.cpp
>>
>> here i had this error : fatal error c1083: impossible d'ouvrir le fichier
>> include : 'gecode/int.hh' : no such file or directory
>>
>> i really don't know where is the problem and how to fixe it ?? Is the
>> path that i give is wrong???
>>
>> Please could anyone help me
>>
>> Thankx verry much for your help
>>
>> ASKRI Manel
>>
>>
>> 2013/5/27 Christian Schulte <cschu...@kth.se>
>>
>>> Please read MPG again. You do not tell us whether you installed the x86
>>> or x64 variant. If it is x86, then the path you give is definitely wrong!
>>> ****
>>>
>>> ** **
>>>
>>> Christian****
>>>
>>> ** **
>>>
>>> --****
>>>
>>> Christian Schulte, www.ict.kth.se/~cschulte****
>>>
>>> ** **
>>>
>>> *From:* users-boun...@gecode.org [mailto:users-boun...@gecode.org] *On
>>> Behalf Of *manel askri
>>> *Sent:* Monday, May 27, 2013 03:34 AM
>>> *To:* Mailing List Email
>>> *Cc:* users@gecode.org
>>> *Subject:* Re: [gecode-users] Fwd: compiling send-more-money****
>>>
>>> ** **
>>>
>>> 1>------ Build started: Project: Carre, Configuration: Debug Win32 ------
>>> ****
>>>
>>> 1>Build started 27/05/2013 02:24:47.****
>>>
>>> 1>InitializeBuildStatus:****
>>>
>>> 1>  Touching "Debug\Carre.unsuccessfulbuild".****
>>>
>>> 1>ClCompile:****
>>>
>>> 1>  All outputs are up-to-date.****
>>>
>>> 1>LINK : fatal error LNK1146: aucun argument spécifié avec l'option
>>> '/ENTRY:'****
>>>
>>> 1>****
>>>
>>> 1>Build FAILED.****
>>>
>>> 1>****
>>>
>>> 1>Time Elapsed 00:00:00.29****
>>>
>>> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
>>> ==========****
>>>
>>> ** **
>>>
>>> ** **
>>>
>>> that's what i get , i don't know where is the problem ???****
>>>
>>> ** **
>>>
>>> this is my code: ****
>>>
>>> /*****
>>>
>>>  *  Authors:****
>>>
>>>  *    Christian Schulte <schu...@gecode.org>****
>>>
>>>  *****
>>>
>>>  *  Copyright:****
>>>
>>>  *    Christian Schulte, 2008-2013****
>>>
>>>  *****
>>>
>>>  *  Permission is hereby granted, free of charge, to any person obtaining
>>> ****
>>>
>>>  *  a copy of this software, to deal in the software without restriction,
>>> ****
>>>
>>>  *  including without limitation the rights to use, copy, modify, merge,
>>> ****
>>>
>>>  *  publish, distribute, sublicense, and/or sell copies of the software,
>>> ****
>>>
>>>  *  and to permit persons to whom the software is furnished to do so,
>>> subject****
>>>
>>>  *  to the following conditions:****
>>>
>>>  *****
>>>
>>>  *  The above copyright notice and this permission notice shall be****
>>>
>>>  *  included in all copies or substantial portions of the software.****
>>>
>>>  *****
>>>
>>>  *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,****
>>>
>>>  *  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF**
>>> **
>>>
>>>  *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND****
>>>
>>>  *  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
>>> BE****
>>>
>>>  *  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
>>> ACTION****
>>>
>>>  *  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
>>> ****
>>>
>>>  *  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.****
>>>
>>>  *****
>>>
>>>  */****
>>>
>>> ** **
>>>
>>> #include <gecode/int.hh>****
>>>
>>> #include <gecode/search.hh>****
>>>
>>> ** **
>>>
>>> using namespace Gecode;****
>>>
>>> ** **
>>>
>>> class SendMoreMoney : public Space {****
>>>
>>> protected:****
>>>
>>>   IntVarArray l;****
>>>
>>> public:****
>>>
>>>   SendMoreMoney(void) : l(*this, 8, 0, 9) {****
>>>
>>>     IntVar s(l[0]), e(l[1]), n(l[2]), d(l[3]),****
>>>
>>>            m(l[4]), o(l[5]), r(l[6]), y(l[7]);****
>>>
>>>     // no leading zeros****
>>>
>>>     rel(*this, s, IRT_NQ, 0);****
>>>
>>>     rel(*this, m, IRT_NQ, 0);****
>>>
>>>     // all letters distinct****
>>>
>>>     distinct(*this, l);****
>>>
>>>     // linear equation****
>>>
>>>     IntArgs c(4+4+5); IntVarArgs x(4+4+5);****
>>>
>>>     c[0]=1000; c[1]=100; c[2]=10; c[3]=1;****
>>>
>>>     x[0]=s;    x[1]=e;   x[2]=n;  x[3]=d;****
>>>
>>>     c[4]=1000; c[5]=100; c[6]=10; c[7]=1;****
>>>
>>>     x[4]=m;    x[5]=o;   x[6]=r;  x[7]=e;****
>>>
>>>     c[8]=-10000; c[9]=-1000; c[10]=-100; c[11]=-10; c[12]=-1;****
>>>
>>>     x[8]=m;      x[9]=o;     x[10]=n;    x[11]=e;   x[12]=y;****
>>>
>>>     linear(*this, c, x, IRT_EQ, 0);****
>>>
>>>     // post branching****
>>>
>>>     branch(*this, l, INT_VAR_SIZE_MIN(), INT_VAL_MIN());****
>>>
>>>   }****
>>>
>>>   // search support****
>>>
>>>   SendMoreMoney(bool share, SendMoreMoney& s) : Space(share, s) {****
>>>
>>>     l.update(*this, share, s.l);****
>>>
>>>   }****
>>>
>>>   virtual Space* copy(bool share) {****
>>>
>>>     return new SendMoreMoney(share,*this);****
>>>
>>>   }****
>>>
>>>   // print solution****
>>>
>>>   void print(void) const {****
>>>
>>>     std::cout << l << std::endl;****
>>>
>>>   }****
>>>
>>> };****
>>>
>>> ** **
>>>
>>> // main function****
>>>
>>> int main(int argc, char* argv[]) {****
>>>
>>>   // create model and search engine****
>>>
>>>   SendMoreMoney* m = new SendMoreMoney;****
>>>
>>>   DFS<SendMoreMoney> e(m);****
>>>
>>>   delete m;****
>>>
>>>   // search and print all solutions****
>>>
>>>   while (SendMoreMoney* s = e.next()) {****
>>>
>>>     s->print(); delete s;****
>>>
>>>   }****
>>>
>>>   return 0;****
>>>
>>> }****
>>>
>>> ** **
>>>
>>> To be more specific , i searsh in the internet for a solution and i find
>>> this tutoril about how to compile carre-magique.cpp with gecode , it sais
>>> that you have to use the commande prompt to compile , that's why i start
>>> with it ****
>>>
>>> ** **
>>>
>>> But something strang happined , i did compil this exemple with VS
>>> commande prompt just one time, and i built a .exe   but after that when i
>>> try send-more-money , it doesn't work, i dont know whay?????****
>>>
>>> ** **
>>>
>>> please forgive my english , i'm note native in it :/****
>>>
>>> ** **
>>>
>>> Thanks for any help ****
>>>
>>> ** **
>>>
>>> 2013/5/27 Mailing List Email <mailingli...@gmail.com>****
>>>
>>> ---------- Forwarded message ----------
>>> From: *manel askri* <askri.man...@gmail.com>
>>> Date: 27 May 2013 03:17
>>> Subject: Re: [gecode-users] compiling send-more-money
>>> To: Mailing List Email <mailingli...@gmail.com>
>>>
>>> ****
>>>
>>> ok thanks very much , i will try tis now ****
>>>
>>> ** **
>>>
>>> 2013/5/27 Mailing List Email <mailingli...@gmail.com>****
>>>
>>> Select Build -> Build Solution in the IDE.****
>>>
>>> Keep users@gecode.org as CC when replying to make sure the email gets
>>> forwarded to the mailing list, too. You should use reply to all when
>>> responding to a message.****
>>>
>>> ** **
>>>
>>> On 27 May 2013 03:13, manel askri <askri.man...@gmail.com> wrote:****
>>>
>>> to be honnest , i'm new in this domain , and i don't know the steps to
>>> do it in the right way , i simply have to deal with gecode to find
>>> solutions, What i did is this , copy past the code of send-more-money in
>>> VS2010 C++, add the include paths , open the command prompt and set this
>>> command line :****
>>>
>>> ** **
>>>
>>> cl /DNDEBUG /EHsc /MD /Ox /wd4355 -I"%C:\Program
>>> Files\Gecode%\include" -c -Fosend-more-money.obj -Tpsend-more-money..cpp
>>>  ****
>>>
>>> and i got that error . and i don't know how to build from the IDE
>>> ???????????????????****
>>>
>>> ** **
>>>
>>> Could you help me pleaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaase , thanks
>>> ****
>>>
>>> ** **
>>>
>>> ** **
>>>
>>> 2013/5/27 Mailing List Email <mailingli...@gmail.com>****
>>>
>>> That's because those include paths only take affect IF you compile from
>>> within the IDE. If you compile from the command prompt, then you have to
>>> add those include paths to the command line arguments to the compiler
>>> manually.
>>> Any reason why you simply don't build from the IDE itself?****
>>>
>>> ** **
>>>
>>> On 27 May 2013 03:00, manel askri <askri.man...@gmail.com> wrote:****
>>>
>>> hello evry one !****
>>>
>>> ** **
>>>
>>> To be honnest with you , i have read the  Modeling and Programming with
>>> Gecode <http://www.gecode.org/doc-latest/MPG.pdf>. Also i searsh in the 
>>> Gecode's
>>> documentation <http://www.gecode.org/documentation.html>, and the archive
>>> of the Gecode users mailing 
>>> list<http://news.gmane.org/gmane.comp.lib.gecode.user> for
>>> solution to my problem but i didn't find one . i use windows 7 , VS2010 C++
>>> and gecode 4.0.0,  when i want to compile send- more-money; i get this
>>> erreur  "impossible d'ouvrir le fichier include : gecode/int.hh : no such
>>> file or directory"??****
>>>
>>> ** **
>>>
>>> I use the visual studio command prompt to compile, and i add C:\program
>>> files\gecode\include and C:\program files\gecode\lib to the properties of
>>> the project to garanti that it works but it doesn't work ****
>>>
>>> please if anyone could help me with this because  its the main  subject
>>> of my graduation project ****
>>>
>>> ** **
>>>
>>> thanks verry much ****
>>>
>>> ** **
>>>
>>> ASKRI Manel ****
>>>
>>> ** **
>>>
>>> _______________________________________________
>>> 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****
>>>
>>> ** **
>>>
>>
>>
>
_______________________________________________
Gecode users mailing list
users@gecode.org
https://www.gecode.org/mailman/listinfo/gecode-users

Reply via email to