Results 1 to 2 of 2

Thread: C mex in MATLAB and the commenting

  1. #1
    Join Date
    Apr 2007
    Posts
    33
    Thanks
    21
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy C mex in MATLAB and the commenting

    Hi,

    I am having trouble with compiling C mex in MATLAB under Linux environment. As it is apparent the C compiler doesn't accept // as comment signs and trys to compile it and reflects huge list of errors.
    Does someone know how can I change the setting options (mexopt.sh) in MATLAB under Linux to let me comment the lines of C with '//' instead of '/* */' ?

    Thx

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: C mex in MATLAB and the commenting

    I don't know how can you convince Matlab to use older C standard, but C++ style comments appeared in C99, so either you need a recent C compiler or simply try to compile your code with C++ compiler.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.