Menu

Vista DLL Compile Problem

Hansey
2007-08-18
2012-09-26
  • Hansey

    Hansey - 2007-08-18

    First off let me say that I can compile the "Hello World" just fine.
    I also need the mods in the FAQ section, they seem to work.

    attached is the error message and compile log.

    Compiler: Default compiler
    Building Makefile: "C:\xlwTwoOne\RCTwoOneFinal\xlwDevCpp\Makefile.win"
    Executing make...
    make.exe -f "C:\xlwTwoOne\RCTwoOneFinal\xlwDevCpp\Makefile.win" all
    dllwrap.exe --output-def libDevCppXll.def --driver-name c++ --implib libDevCppXll.a ../xlw/Win32StreamBuf.o ../xlw/XlfAbstractCmdDesc.o ../xlw/XlfArgDesc.o ../xlw/XlfArgDescList.o ../xlw/XlfCmdDesc.o ../xlw/XlfExcel.o ../xlw/XlfException.o ../xlw/XlfFuncDesc.o ../xlw/XlfOper.o ../xlw/XlfRef.o ../xlw/CellMatrix.o ../xlw/MJmatrices.o ../xlw/XlFunctionRegistration.o ../xlw/XlOpenClose.o ../xlw/ArgList.o ../xlw/DoubleOrNothing.o ../TestFiles/xlwTest.o ../TestFiles/PayOff.o ../TestFiles/PayOffConcrete.o ../TestFiles/PayOffRegistration.o ../TestFiles/Test.o ../xlw/MyContainers.o ../xlw/xlarray.o -L"C:/Dev-Cpp/lib" --no-export-all-symbols --add-stdcall-alias -o DevCppXll.xll

    ld: dllcrt2.o: No such file: No such file or directory

    dllwrap.exe: no export definition file provided.
    Creating one, but that may not be what you want
    dllwrap.exe: c++ exited with status 1

    make.exe: *** [DevCppXll.xll] Error 1

    Execution terminated

    Compiler: Default compiler
    Building Makefile: "C:\xlwTwoOne\RCTwoOneFinal\xlwDevCpp\Makefile.win"
    Executing make...
    make.exe -f "C:\xlwTwoOne\RCTwoOneFinal\xlwDevCpp\Makefile.win" all
    dllwrap.exe --output-def libDevCppXll.def --driver-name c++ --implib libDevCppXll.a ../xlw/Win32StreamBuf.o ../xlw/XlfAbstractCmdDesc.o ../xlw/XlfArgDesc.o ../xlw/XlfArgDescList.o ../xlw/XlfCmdDesc.o ../xlw/XlfExcel.o ../xlw/XlfException.o ../xlw/XlfFuncDesc.o ../xlw/XlfOper.o ../xlw/XlfRef.o ../xlw/CellMatrix.o ../xlw/MJmatrices.o ../xlw/XlFunctionRegistration.o ../xlw/XlOpenClose.o ../xlw/ArgList.o ../xlw/DoubleOrNothing.o ../TestFiles/xlwTest.o ../TestFiles/PayOff.o ../TestFiles/PayOffConcrete.o ../TestFiles/PayOffRegistration.o ../TestFiles/Test.o ../xlw/MyContainers.o ../xlw/xlarray.o -L"C:/Dev-Cpp/lib" --no-export-all-symbols --add-stdcall-alias -o DevCppXll.xll

    ld: dllcrt2.o: No such file: No such file or directory

    dllwrap.exe: no export definition file provided.
    Creating one, but that may not be what you want
    dllwrap.exe: c++ exited with status 1

    make.exe: *** [DevCppXll.xll] Error 1

    Execution terminated

    I must have to turn a switch on or something.

    Can anyone help?

     
    • Wayne Keen

      Wayne Keen - 2007-08-20

      Have you folks done anything with your system level variables like c_include_path?

      This is probably an only marginally related note, but in doing some work to get GCC-4.2.1 going with Vista, I had to add some environment level variables to get things to work.

      Wayne

       
      • Wayne Keen

        Wayne Keen - 2007-08-20

        Again, this is a solution to a different problem, but this message gave me the seeds to fixing the issues I was having with GCC-4.2.1 and Vista. Note that this work was being done not with Dev, but with simply MinGW and MSYS - but I thought I would mention it for completeness (of my own stupidity probably)

        http://forums.codeblocks.org/index.php/topic,5937.msg49178.html#msg49178

        (Yes, its a link from the codeblocks forum)

        Wayne

         
    • Jim Pattee

      Jim Pattee - 2007-08-18

      dllcrt2.o should be in the C:/Dev-Cpp/lib folder. Check and see if it is there. If not, are there any .o files in this folder?

       
    • Hansey

      Hansey - 2007-08-18

      Yes, it is there.

      Maybe I need to add a link to the libray files?

       
    • Jim Pattee

      Jim Pattee - 2007-08-18

      You already have it linked with -L"C:/Dev-Cpp/lib". For some reason the ld program isn't recognizing it.

      Try copying dllcrt2.o to the folder with your Dev-Cpp project file and see what happens.

       
    • Hansey

      Hansey - 2007-08-19

      Well we are making some progress, I had to add both dllcrt1.o and dllcrt2.o aswell as crtbegin.o now it compiles to to point here it say's that it can't find -lgcc. Any thoughts?

       
    • Jim Pattee

      Jim Pattee - 2007-08-20

      The problem is it is not recognizing -L"C:/Dev-Cpp/lib". Try executing the link form a batch file. Make a file test.bat in the project folder. Then execute it by double clicking and see what happens. Is the entire command being displayed or not? Put the following in the batch file:

      dllwrap.exe --output-def libDevCppXll.def --driver-name c++ --implib libDevCppXll.a ../xlw/Win32StreamBuf.o ../xlw/XlfAbstractCmdDesc.o ../xlw/XlfArgDesc.o ../xlw/XlfArgDescList.o ../xlw/XlfCmdDesc.o ../xlw/XlfExcel.o ../xlw/XlfException.o ../xlw/XlfFuncDesc.o ../xlw/XlfOper.o ../xlw/XlfRef.o ../xlw/CellMatrix.o ../xlw/MJmatrices.o ../xlw/XlFunctionRegistration.o ../xlw/XlOpenClose.o ../xlw/ArgList.o ../xlw/DoubleOrNothing.o ../TestFiles/xlwTest.o ../TestFiles/PayOff.o ../TestFiles/PayOffConcrete.o ../TestFiles/PayOffRegistration.o ../TestFiles/Test.o ../xlw/MyContainers.o ../xlw/xlarray.o -L"C:/Dev-Cpp/lib" --no-export-all-symbols --add-stdcall-alias -o DevCppXll.xll

       
    • Jim Pattee

      Jim Pattee - 2007-08-20

      The -lgcc is trying to link to gcc.a. It is in a subfolder of "C:/Dev-Cpp/lib".

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.