<div dir="ltr"><div><div><div><div>Hi all,<br></div>c2hs runs into the following error on all of my .chs files, but only on Windows:<br>c:\\program files\\haskell platform\\2014.2.0.0\\mingw\\bin\\../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw32/include/stddef.h:20: (column 11)<br> [ERROR]  >>> Syntax error !<br>  The symbol `__attribute__' does not fit here.<br><br>My c2hs version is:<br>C->Haskell Compiler, version 0.23.1 Snowbounder, 31 Oct 2014<br>  build platform is "x86_64-mingw32" <1, True, True, 1><br><br>This is the command being run:<br>"c:\Users\deech\AppData\Roaming\cabal\bin\c2hs.exe" <br>   "--cpp=c:\Program Files\Haskell Platform\2014.2.0.0\mingw\bin\gcc.exe" <br>   "--cppopts=-E" "--cppopts=-D__GLASGOW_HASKELL__=708" <br>   "--cppopts=-Dmingw32_BUILD_OS=1" <br>   "--cppopts=-Dx86_64_BUILD_ARCH=1" <br>   "--cppopts=-Dmingw32_HOST_OS=1" <br>   "--cppopts=-Dx86_64_HOST_ARCH=1" <br>   "--cppopts=-I./c-src" <br>   "--cppopts=-I./" <br>   "--cppopts=-IC:/MinGW/include" <br>   "--cppopts=-IC:\Users\deech\Downloads\fltkhs-0.1.0.1/c-src" <br>   "--cppopts=-IC:\Users\deech\Downloads\fltkhs-0.1.0.1" <br>   "--include=dist\build" <br>   "--cppopts=-IC:\Program Files\Haskell Platform\2014.2.0.0\lib\process-1.2.0.0\include" <br>   "--cppopts=-IC:\Program Files\Haskell Platform\2014.2.0.0\lib\directory-1.2.1.0\include" <br>   "--cppopts=-IC:\Program Files\Haskell Platform\2014.2.0.0\lib\time-1.4.2\include" <br>   "--cppopts=-IC:\ProgramFiles\Haskell Platform\2014.2.0.0\lib\Win32-2.3.0.2\include" <br>   "--cppopts=-IC:\Program Files\Haskell Platform\2014.2.0.0\lib\bytestring-0.10.4.0\include" <br>   "--cppopts=-IC:\Program Files\Haskell Platform\2014.2.0.0\lib\base-4.7.0.1\include" <br>   "--cppopts=-IC:\Program Files\Haskell Platform\2014.2.0.0\lib\integer-gmp-0.5.1.0\include" <br>   "--cppopts=-IC:\Program Files\Haskell Platform\2014.2.0.0\lib/include" <br>   "--output-dir=dist\build" "--output=Graphics\UI\FLTK\LowLevel\HorValueSlider.hs" <br>   "src\Graphics\UI\FLTK\LowLevel\HorValueSlider.chs"<br><br></div><div>A little Googling turned up this thread: <a href="http://haskell.1045720.n5.nabble.com/BUG-string-h-FC4-x86-64-td3196369.html">http://haskell.1045720.n5.nabble.com/BUG-string-h-FC4-x86-64-td3196369.html</a> which suggested I pass -D__attribute__(A)= to c2hs's opts. I tried it and it led to other errors. I didn't pursue any further  because it's an old thread. I'm not sure what stddef.h is and I'm unfamiliar with Windows. <br><br>Any help is appreciated.<br></div></div>Thanks!<br></div>-deech<br></div>