Share

Huge Quadratic Programming

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Gcc 4.3 + Matlab + Hci_SimStruct.C-> Error

You are viewing a single message from this topic. View all messages.

  1. 2008-12-04 18:48:59 UTC
    So i have the following problem on a Linux machine (Arch Linux), with gcc 4.3.2.
    Without mex and matlab support, (but omuses support) i can compile this package without problems after patching
    the Hxi_SimStruct.C file.

    --- hqp/hxi/Hxi_SimStruct.C 2005-06-30 19:41:21.000000000 +0200
    +++ Hxi_SimStruct.C 2008-11-14 22:38:55.000000000 +0100
    @@ -28,6 +28,7 @@
    */

    #include <assert.h>
    +#include <malloc.h>

    #include <vector>
    #include <string>

    However, at the moment i'm still struggling to build the S-functions support from Matlab (Matlab 2008a). Im using the following
    configuration
    ./configure --prefix=/usr --enable-fortran --enable-shared --enable-mex \
    --with-matlab=/opt/matlab --with-matlab-libs=/opt/matlab/bin/glnx86
    But during the build, i get the following error

    g++ -c -O2 -fPIC -I. -I.. -I"/usr/include" -I../iftcl -I../hqp -I../adol-c/adol-c -I../hxi -I"/opt/matlab" -I"/opt/matlab/extern/include" -DVERSION=\"1.9.5\" -DUSE_TCL_STUBS=1 -DHXI_WITH_MEX=1 -DOMU_WITH_FORTRAN=1 ../hxi/Hxi_SFunction.C
    g++ -c -O2 -fPIC -I. -I.. -I"/usr/include" -I../iftcl -I../hqp -I../adol-c/adol-c -I../hxi -I"/opt/matlab" -I"/opt/matlab/extern/include" -DVERSION=\"1.9.5\" -DUSE_TCL_STUBS=1 -DHXI_WITH_MEX=1 -DOMU_WITH_FORTRAN=1 ../hxi/Hxi_SimStruct.C
    In file included from ../hxi/Hxi_SimStruct.C:1044:
    ../hxi/Hxi_SimStruct_methods.h: In function »const char_T* hssSetErrorStatus(SimStruct*, const char_T*)«:
    ../hxi/Hxi_SimStruct_methods.h:74: Fehler: expected primary-expression before »{« token
    ../hxi/Hxi_SimStruct_methods.h:74: Fehler: expected »;« before »{« token
    make[2]: *** [Hxi_SimStruct.o] Fehler 1

    (Fehler is Error in German)

    Any help would be be appreciated.
    P.S.: As far as I can tell, there are some issues with ssSetErrorStatus. However, i have no clue what kind of issues
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.