Coder Social home page Coder Social logo

Enable config.h in MSVC about oce HOT 6 CLOSED

tpaviot avatar tpaviot commented on July 28, 2024
Enable config.h in MSVC

from oce.

Comments (6)

dbarbier avatar dbarbier commented on July 28, 2024

Did you try to add -DHAVE_CONFIG_H to compilation flags? If everything works fine, we can add this flag on Win32 too.

from oce.

dbarbier avatar dbarbier commented on July 28, 2024

ping? I would like to remove #ifdef HAVE_CONFIG_H from inc/*.hxx files (but not src/, this is unnecessary) to let them unconditionnally include oce-config.h, it is extremely annoying to still have to set -DHAVE_CONFIG_H when compiling a program using OCE.

from oce.

QbProg avatar QbProg commented on July 28, 2024

I'll try this this evening !

2011/7/29 dbarbier
[email protected]:

ping?  I would like to remove #ifdef HAVE_CONFIG_H from inc/*.hxx files (but not src/, this is unnecessary) to let them unconditionnally include oce-config.h, it is extremely annoying to still have to set -DHAVE_CONFIG_H when compiling a program using OCE.

Reply to this email directly or view it on GitHub:
#15 (comment)

from oce.

dbarbier avatar dbarbier commented on July 28, 2024

Please test review/unconditionnaly-include-config-file branch.

from oce.

QbProg avatar QbProg commented on July 28, 2024

it builds on MSVC.

There are still some things to do before closing the bug:

  • not all defines are really defined
  • no define is defined in the "installed" config.h
  • there are still HAVE_CONFIG_H checks in the cpp files
  • the FULL installation path is taken in the OCE_CONFIG.h : this is not really good in windows since the binaries must be allowed to be installed on different paths
    (this is used here and there to define casroot).
    This last point is releated to #2

from oce.

dbarbier avatar dbarbier commented on July 28, 2024

I am closing this issue, changes have been committed recently. I guess that there are still issues, but it is better to file specific bug reports.

from oce.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.