Created
January 22, 2012 23:53
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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