Bug #125

DLL compilation doesn't work in Windows

Added by Chris Grandin 11 months ago. Updated 11 months ago.

Status:ClosedStart date:08/15/2013
Priority:HighDue date:
Assignee:Chris Grandin% Done:

100%

Category:ADMB 11Estimated time:1.00 hour
Target version:ADMB-Trunk

Description

This is using a mingw 32 built source

admb -d simple

  • tpl2cpp -bounds -dll simple
    xxglobal.tmp
    xxhtop.tmp
    header.tmp
    xxalloc.tmp
    xxtopm.tmp
    1 file(s) copied.
  • adcomp -d -s simple
    '"C:\admb-trunk\build\dist"\bin\admb-cfg.bat' is not recognized as an internal or external command,
    operable program or batch file.
    g++ -c -O3 -D__GNUDOS__ -DBUILDING_DLL -Dlinux -DSAFE_ALL -DUSE_LAPLACE -fpermissive -I. -I"C:\admb-trunk\build\dist\include" -I"C:\admb-trunk\build\dist\contrib\include" -o simple.obj simple.cpp
    simple.cpp:73:0: warning: "__declspec" redefined [enabled by default]
    <built-in>:0:0: note: this is the location of the previous definition
    simple.cpp: In function 'void simple(char**)':
    simple.cpp:86:61: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  • adlink -d -s simple.obj
    '"C:\admb-trunk\build\dist"\bin\admb-cfg.bat' is not recognized as an internal or external command,
    operable program or batch file.
    dllwrap -s -static -def simple.def --driver-name g++ -o simple.exe simple.obj "C:\admb-trunk\build\dist\contrib\lib\libcontrib.a" "C:\admb-trunk\build\dist\lib\libadmb.a"

Error: Unable to build executable.

History

#1 Updated by Chris Grandin 11 months ago

  • % Done changed from 0 to 100
  • Estimated time set to 1.00

I tested both VS and minGW builds and they both appear to work now.

#2 Updated by Chris Grandin 11 months ago

  • Status changed from New to Closed

Also available in: Atom PDF