Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  15 Dec 2016, Kevin Giovanetti, Bug Report, midas.h error 
    Reply  15 Dec 2016, Stefan Ritt, Bug Report, midas.h error Screen_Shot_2016-12-15_at_17.39.26_.png
       Reply  01 Feb 2017, Konstantin Olchanski, Bug Report, midas.h error 
          Reply  01 Feb 2017, Stefan Ritt, Bug Report, midas.h error 
Message ID: 1226     Entry time: 15 Dec 2016     In reply to: 1225     Reply to this: 1231
Author: Stefan Ritt 
Topic: Bug Report 
Subject: midas.h error 
> creating a frontend on MAC Sierra OSX 10
> include the midas.h file and when compiling with XCode I get an error based on
> this entry in the midas.h include
> 
> #if !defined(OS_IRIX) && !defined(OS_VMS) && !defined(OS_MSDOS) &&
> !defined(OS_UNIX) && !defined(OS_VXWORKS) && !defined(OS_WINNT)
> #error MIDAS cannot be used on this operating system
> #endif
> 
> 
> Perhaps I should not use Xcode?
> Perhaps I won't need Midas.h?
> 
> The MIDAS system is running on my MAC but I need to add a very simple front end
> for testing and I encounted this error.

If you compile with the included Makefile, you will see a 

-DOS_LINUX -DOS_DARWIN

flag which tells the compiler that we are on a mac. If you do this with XCode, you have to do it via "Build Settings" (see 
attached picture).

Stefan
Attachment 1: Screen_Shot_2016-12-15_at_17.39.26_.png  948 kB  | Hide | Hide all
Screen_Shot_2016-12-15_at_17.39.26_.png
ELOG V3.1.4-2e1708b5