Changes between Version 1 and Version 2 of user-examples


Ignore:
Timestamp:
May 27, 2006 7:57:41 PM (14 years ago)
Author:
anonymous
Comment:

warning to make install for examples and own code

Legend:

Unmodified
Added
Removed
Modified
  • user-examples

    v1 v2  
    44
    55A number of COIN projects that generated libraries have an {{{examples}}} subdirectory.  After you run configure, you will find a simple {{{Makefile}}} in there, that  has been adapted to your system.  If you want to hook up your own code to this COIN library, it might be a good idea to start by looking at this Makefile.
     6
     7{{{Note:}}}  You should use only the libraries and header files that have been installed by {{{make install}}}, not from the source code directory from the COIN code.  We are using the GNU autotools to compile the code, and picking up libraries and headers from the source directories has a good chance of creating problems.  Similarly, you will have to do a {{{make install}} before you can compile the examples.
    68
    79In order to modify this Makefile to compile your own code, you usually only have to change the first part, which might look like this:
     
    5860
    5961# C++ Compiler options
    60 CXXFLAGS = -O3 -fomit-frame-pointer -pipe -DNDEBUG  -pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion
     62CXXFLAGS = -O3 -fomit-frame-pointer -pipe -DNDEBUG  -pedantic-errors \
     63      -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall \
     64      -Wpointer-arith -Wwrite-strings -Wconversion
    6165
    6266# additional C++ Compiler options for linking