Opened 8 years ago

Closed 8 years ago

#92 closed defect (invalid)

Cbc compilation problem..

Reported by: chtsolak Owned by: stefan
Priority: major Component: build system
Version: 0.7 Keywords:
Cc:

Description

I am a student and i make research. I use windows 7 and MS visual studio 2010 ultimate.

I want to run gamsTest.cpp which is in Cbc-2.7.4\Cbc\test directory in Cbc package, in order to compare with the gams model.

I make a new visual studio project and i copy-paste the code in the source code .cpp file.

But during the compilation i get many errors about the .hpp files

One of the, common between them errors, is:

" 11 IntelliSense?: cannot open source file "CoinError?.hpp" c:\users\christos\desktop\dipl\dipl_test\dipl_test\dipl_test.cpp 14 1 dipl_test "

Maybe i did not understand the concept of the way should be compiled, and all the above are irrelevant...

Please enlight me. Thank you in advance.

Attachments (1)

Untitled.png (162.0 KB) - added by chtsolak 8 years ago.
printscreen

Download all attachments as: .zip

Change History (5)

comment:1 Changed 8 years ago by stefan

Probably you need to specify the path whether the Cbc header files for the compiler. On a command line, this would mean adding -I flags to the compiler call. In MSVS, you would have to click somewhere to set include paths.

Stefan

comment:2 Changed 8 years ago by chtsolak

OK i moved the necessary files in the same folder with the MSVS project and problems solved. But now i have the following problems, first time to see. (look at the photo)

Last edited 8 years ago by chtsolak (previous) (diff)

Changed 8 years ago by chtsolak

printscreen

comment:3 Changed 8 years ago by tkr

Most likely, you need to add the libraries to the list of Additional Dependencies in Properties => Configuration Properties => Linker => Input. Also, you may need to specify the location of the libraries in Additional Library Directories in Properties => Configuration Properties => Linker => General. I am going to close this ticket, since it does not appear to be a bug. Feel free to ask any further questions on the mailing list.

comment:4 Changed 8 years ago by lou

  • Resolution set to invalid
  • Status changed from new to closed

Agreed. This is not a cbc bug, it's just the pain of learning to use Visual Studio. The last thing you want to do is move (worse, copy) files from the original source directories to your application development directory. Use the facilities of Visual Studio to specify the location of include files and libraries.

Closing.

Note: See TracTickets for help on using tickets.