Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

==Why am I getting the warnings?==

require 'mkmf'
source_dir = File.expand_path RbConfig::CONFIG['srcdir']
if RUBY_PLATFORM =~ /win32|mingw/i
hitt_folder = "windows"
else
hitt_folder = "macosx"
end
dir_config('hitt_sdk', source_dir + "/H-ITTSDK_2.0.4/include", source_dir + "/H-ITTSDK_2.0.4/lib/#{hitt_folder}")
unless find_header("H-ITTSDK.h")
abort "H-ITTSDK is missing!!!"
end
#unless find_library("h-ittsdk", "hitt_sdk_version")
#abort "libH-ITTSDK is missing!!!"
#end
$CFLAGS << " --def h-ittsdk.def -IH-ITTSDK"
create_makefile("hittsdk/hittsdk")
mkdir -p tmp/i386-mswin32/hittsdk/1.9.3
cp /Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/lib/ruby/1.9.1/i386-mingw32/rbconfig.rb tmp/i386-mswin32/hittsdk/1.9.3/rbconfig.rb
cp /Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/lib/ruby/1.9.1/mkmf.rb tmp/i386-mswin32/hittsdk/1.9.3/mkmf.rb
cd tmp/i386-mswin32/hittsdk/1.9.3
/Users/nclark/.rvm/rubies/ruby-1.9.3-p125/bin/ruby -I. -rfake ../../../../ext/hittsdk/extconf.rb --def h-ittsdk.def -IH-ITTSDK
checking for H-ITTSDK.h... yes
creating Makefile
cd -
cd tmp/i386-mswin32/hittsdk/1.9.3
make
generating hittsdk-i386-mingw32.def
compiling ../../../../ext/hittsdk/hittsdk.c
<command-line>:0:2: warning: missing whitespace after the macro name [enabled by default]
In file included from /Users/nclark/Code/mingw-w32/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/include/winnt.h:89:0,
from /Users/nclark/Code/mingw-w32/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/include/windef.h:137,
from /Users/nclark/Code/mingw-w32/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/include/windows.h:69,
from /Users/nclark/Code/mingw-w32/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/include/winsock2.h:23,
from /Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/win32.h:40,
from /Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/defines.h:223,
from /Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/ruby.h:67,
from /Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby.h:32,
from ../../../../ext/hittsdk/hittsdk.c:3:
/Users/nclark/Code/mingw-w32/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/include/basetsd.h:122:54: error: expected ‘;’, ‘,’ or ‘)’ before ‘-’ token
/Users/nclark/Code/mingw-w32/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/include/basetsd.h:123:54: error: expected ‘;’, ‘,’ or ‘)’ before ‘-’ token
In file included from /Users/nclark/Code/mingw-w32/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/include/windows.h:71:0,
from /Users/nclark/Code/mingw-w32/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/include/winsock2.h:23,
from /Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/win32.h:40,
from /Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/defines.h:223,
from /Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/ruby.h:67,
from /Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby.h:32,
from ../../../../ext/hittsdk/hittsdk.c:3:
/Users/nclark/Code/mingw-w32/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/include/wingdi.h:2328:57: error: expected ‘;’, ‘,’ or ‘)’ before ‘-’ token
In file included from /Users/nclark/Code/mingw-w32/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/include/windows.h:71:0,
from /Users/nclark/Code/mingw-w32/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/include/winsock2.h:23,
from /Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/win32.h:40,
from /Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/defines.h:223,
from /Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/ruby.h:67,
from /Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby.h:32,
from ../../../../ext/hittsdk/hittsdk.c:3:
/Users/nclark/Code/mingw-w32/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/include/wingdi.h:2348:82: error: expected ‘;’, ‘,’ or ‘)’ before ‘-’ token
/Users/nclark/Code/mingw-w32/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/include/wingdi.h:2455:76: error: expected ‘;’, ‘,’ or ‘)’ before ‘-’ token
/Users/nclark/Code/mingw-w32/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/include/wingdi.h:2492:57: error: expected ‘;’, ‘,’ or ‘)’ before ‘-’ token
/Users/nclark/Code/mingw-w32/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/include/wingdi.h:2493:48: error: expected ‘;’, ‘,’ or ‘)’ before ‘-’ token
/Users/nclark/Code/mingw-w32/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/include/wingdi.h:2581:59: error: expected ‘;’, ‘,’ or ‘)’ before ‘-’ token
/Users/nclark/Code/mingw-w32/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/include/wingdi.h:2670:65: error: expected ‘;’, ‘,’ or ‘)’ before ‘-’ token
/Users/nclark/Code/mingw-w32/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/include/wingdi.h:2692:57: error: expected ‘;’, ‘,’ or ‘)’ before ‘-’ token
/Users/nclark/Code/mingw-w32/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/include/wingdi.h:2701:84: error: expected ‘;’, ‘,’ or ‘)’ before ‘-’ token
/Users/nclark/Code/mingw-w32/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/include/wingdi.h:2936:42: error: expected ‘;’, ‘,’ or ‘)’ before ‘-’ token
/Users/nclark/Code/mingw-w32/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/include/wingdi.h:2937:42: error: expected ‘;’, ‘,’ or ‘)’ before ‘-’ token
/Users/nclark/Code/mingw-w32/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/include/wingdi.h:2961:71: error: expected ‘;’, ‘,’ or ‘)’ before ‘-’ token
/Users/nclark/Code/mingw-w32/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/include/wingdi.h:2980:52: error: expected ‘;’, ‘,’ or ‘)’ before ‘-’ token
In file included from /Users/nclark/Code/mingw-w32/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/include/windows.h:72:0,
from /Users/nclark/Code/mingw-w32/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/include/winsock2.h:23,
from /Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/win32.h:40,
from /Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/defines.h:223,
from /Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/ruby.h:67,
from /Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby.h:32,
from ../../../../ext/hittsdk/hittsdk.c:3:
/Users/nclark/Code/mingw-w32/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/include/winuser.h:3459:45: error: expected ‘;’, ‘,’ or ‘)’ before ‘-’ token
In file included from /Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/defines.h:223:0,
from /Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/ruby.h:67,
from /Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby.h:32,
from ../../../../ext/hittsdk/hittsdk.c:3:
/Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/win32.h:186:0: warning: "stat" redefined [enabled by default]
In file included from /Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/win32.h:72:0,
from /Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/defines.h:223,
from /Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/ruby.h:67,
from /Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby.h:32,
from ../../../../ext/hittsdk/hittsdk.c:3:
/Users/nclark/Code/mingw-w32/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/include/sys/stat.h:258:0: note: this is the location of the previous definition
In file included from /Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/intern.h:34:0,
from /Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/ruby.h:1377,
from /Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby.h:32,
from ../../../../ext/hittsdk/hittsdk.c:3:
/Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/st.h:128:60: error: expected ‘;’, ‘,’ or ‘)’ before ‘-’ token
/Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/st.h:129:38: error: expected ‘;’, ‘,’ or ‘)’ before ‘-’ token
/Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/st.h:130:36: error: expected ‘;’, ‘,’ or ‘)’ before ‘-’ token
/Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/st.h:131:35: error: expected ‘;’, ‘,’ or ‘)’ before ‘-’ token
/Users/nclark/.rake-compiler/ruby/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/st.h:132:37: error: expected ‘;’, ‘,’ or ‘)’ before ‘-’ token
make: *** [hittsdk.o] Error 1
rake aborted!
Command failed with status (2): [make...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.