Форум » » Compiling IvanHoe with VS 2008 Express? » Ответить

Compiling IvanHoe with VS 2008 Express?

Snape: Hi, I need a little help from my friends here. I want to take the IvanHoe sources and compile them on my own. I would like to do it under Visual Studio 2008 (Express). But first I have to admit that I am not very used to C++. I have some advanced experience with Visual Studio and Fortran within that and Java. What I tried was creating a new standard project, imported all *.h files into the header-folder, the .c files into the sources-folder and the *.i and *.v files into the resources folder. Now after a build (all) I get the message that there is no executable build commandline available. Therefore no .exe is generated. What am I doing wrong? Any help appreciated - except "use gcc" unless it is followed by really easy use. ;) Thanks in advance.

Ответов - 4

bankuss: Snape пишет: into the sources-folder and the *.i and *.v files into the resources folder no Snape пишет: all *.h files into the header-folder, the .c files not all files + change robbolito.h

Snape: Hi, OK, removed the *.i and *.v files from the VS-project. Changed the first two RobboLito.h into #include <stdio> #include <stdlib> Didn't remove *.h and *.c files, still the same error: "Существует не построить командную строку, чтобы быть выполнено до сих пор." (thanks google-translation) What else is necessary? You can also write a PN if you don't want to go any further here in this thread. ;)

Robborriffic: I imported everything in the latest tar into MSVC 2008 (File menu, under New, choose Project from Existing Code). Then I changed the global properties (click on the project, and then in Project choose the final item, Properties) of the "Command Line" (go to Configuration Properties, and C/C++, and Command Line). Here I added as "Additional Options" /D "WINDOWS" /D "CON_ROBBO_BUILD" /D "YUSUF_MULTICORE" /D "EPONYM"=\"YOUR_NAME_HERE\" /D "VERSION"=\"VERSION_NUMBER\" Then I removed various of the files from the build (those that are only used to build Triple bases). This is by right-clicking on the file name in the Solution Explorer. I got rid of Robbo_build.c Robbo_comp.c Robbo_conto.c Robbo_gen.c Robbo_gen_mossa.h Robbo_mfa.c Robbo_mobilita.c RobboTripleBuild.c Then I just did Build Solution in the Build menu. This is probably lousy in speed, but it's a starting point.


Snape: Thanks for these hints. It finally works. Although I had to change a function call too.



полная версия страницы