Menu

#5 mingw patch

Unstable_(example)
open
nobody
None
5
2015-09-01
2015-02-18
No

Hi there,
to get xlslib compiling with mingw, you will have to disable "targets" as make target.
Because while cross compiling it would not work.
Furthermore I had to disable AX_CC_PRAGMA_PACK in configure.ac when comiling with mingw.

Maybe this patch is not perfect, but I hope you will get the idea.

thank you

Marcel

1 Attachments

Discussion

  • David Hoerl

    David Hoerl - 2015-02-19

    I'll look at it. I just need to be sure that it doesn't break any other build. Are you sure there is no pack capability for mingw? That's based on gcc no? If so gcc supports pack, but perhaps it needs to be slightly different. When pack is disabled, you lose the ability to create formulas - which may not be of interest to you.

     
  • Marcel Schneider

    About the pack capability:
    You are right I dont care about fomulas for my purposes.
    Thats why I didnt get deeper on this topic yet.
    Maybe I'll find some more time to investigate into pack capabilities of mingw.
    Would it be acceptable for you to make fomulas an option for compiling?
    An optin which is enabled by default.

     
  • Mauro Joel Schutz

    After some search, the solution to compile was to force automake to link the mainC.c with g++.

    On file targets\test\Makefile.am you need to add this line:

    nodist_EXTRA_testC_SOURCES = dummy.cpp

    No need to create dummy.cpp

     

Log in to post a comment.