Skip to content

Instantly share code, notes, and snippets.

@dockimbel
Created January 22, 2012 23:53
Show Gist options
  • Save dockimbel/1659447 to your computer and use it in GitHub Desktop.
Save dockimbel/1659447 to your computer and use it in GitHub Desktop.
Simple math function bindings generates a missing symbol on Linux (works ok on Win/OSX)
Red/System []
#import [
LIBC-file cdecl [
sin: "sin" [
x [float!]
return: [float!]
]
]
]
a: sin 3.14159265358979
;;-- compiling it on Linux using float-partial branch produces the following error message:
;;-- # ./sym-test
;;-- ./sym-test: symbol lookup error: ./sym-test: undefined symbol: sin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment