Menu

link errors when building SUGAR

Help
Bill Kraus
2003-08-01
2003-08-05
  • Bill Kraus

    Bill Kraus - 2003-08-01

    Trying to build SUGAR to run from Matlab 5.3 on Windows XP. After following install instructions, still get linker errors at final link to build sugarmex.dll. The output dump is as follows

    /cygdrive/c/MATLABR11/bin/mex.bat -I. -I../..  -I../../tools/lua/include  -g -I../../tools/lua/include   sugarmex.c mex_handle.c mesh_mex.c vars_mex.c assemble_mex.c netdraw_mex.c  netout_mex.c netdraw_mlab.c netout_mlab.c model_matlab.c model_mf2wrap.c sugarlib.a ../../tools/lua/lib/liblua.a ../../tools/lua/lib/liblualib.a  C:/mingw/lib/libm.a
    Microsoft (R) Incremental Linker Version 6.00.8447
    Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

    sugarmex.obj mex_handle.obj mesh_mex.obj vars_mex.obj assemble_mex.obj netdraw_mex.obj netout_mex.obj netdraw_mlab.obj netout_mlab.obj model_matlab.obj model_mf2wrap.obj sugarlib.a ../../tools/lua/lib/liblua.a ../../tools/lua/lib/liblualib.a C:/mingw/lib/libm.a mexversion.res
       Creating library _lib7114.lib and object _lib7114.exp
    sugarlib.a(assemblem.o) : error LNK2001: unresolved external symbol ___assert
    sugarlib.a(

    ) : error LNK2001: unresolved external symbol ___assert
    sugarlib.a(netdraw.o) : error LNK2001: unresolved external symbol ___assert
    sugarlib.a(netout.o) : error LNK2001: unresolved external symbol ___assert
    sugarlib.a(dynarray.o) : error LNK2001: unresolved external symbol ___assert
    sugarlib.a(mempool.o) : error LNK2001: unresolved external symbol ___assert
    sugarlib.a(vars.o) : error LNK2001: unresolved external symbol ___assert
    sugarlib.a(assemble.o) : error LNK2001: unresolved external symbol ___assert
    liblualib.a(lbaselib.o) : error LNK2001: unresolved external symbol __impure_ptr
    sugarlib.a(mesh.o) : error LNK2001: unresolved external symbol __impure_ptr
    liblua.a(lstate.o) : error LNK2001: unresolved external symbol __impure_ptr
    liblua.a(ldo.o) : error LNK2001: unresolved external symbol __impure_ptr
    liblualib.a(liolib.o) : error LNK2001: unresolved external symbol __impure_ptr
    liblua.a(ldo.o) : error LNK2001: unresolved external symbol _setjmp
    liblua.a(llex.o) : error LNK2001: unresolved external symbol __imp___ctype_
    liblua.a(lobject.o) : error LNK2001: unresolved external symbol __imp___ctype_
    liblualib.a(liolib.o) : error LNK2001: unresolved external symbol __imp___ctype_
    liblualib.a(lbaselib.o) : error LNK2001: unresolved external symbol __imp___ctype_
    liblualib.a(liolib.o) : error LNK2001: unresolved external symbol ___errno
    sugarmex.dll : fatal error LNK1120: 5 unresolved externals

      C:\MATLABR11\BIN\MEX.BAT: Link of 'sugarmex.dll' failed.

    =======================
    Really need some help here. Thanks

     
    • Bill Kraus

      Bill Kraus - 2003-08-05

      Found the problem. Everything must be compiled with the -mno-cygwin switch.

      BTW - is there anyone supporting this software anymore, or is it dead-the-water?

       

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.