Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'go get' command doesn't work #1

Open
Vertylo opened this issue Jun 15, 2019 · 0 comments
Open

'go get' command doesn't work #1

Vertylo opened this issue Jun 15, 2019 · 0 comments

Comments

@Vertylo
Copy link

Vertylo commented Jun 15, 2019

Very interesting project but the 'go get' command doesn't work. It seems there is an issue with the logf function.

Log :

# github.com/fipress/GoUI
In file included from go/src/github.com/fipress/GoUI/cocoa.go:16:
./bridge.c:54:13: error: static declaration of 'logf' follows non-static declaration
static void logf(const char *format, ...) {
            ^
/usr/include/math.h:386:14: note: previous declaration is here
extern float logf(float);
             ^
go/src/github.com/fipress/GoUI/cocoa.go:29:44: error: too many arguments to function call, expected 1, have 2
      logf("didReceiveScriptMessage: %s\n",[message.name UTF8String]);
      ~~~~                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/math.h:386:1: note: 'logf' declared here
extern float logf(float);
^
go/src/github.com/fipress/GoUI/cocoa.go:32:37: error: too many arguments to function call, expected 1, have 2
        logf("Received event %s\n", str);
        ~~~~                        ^~~
/usr/include/math.h:386:1: note: 'logf' declared here
extern float logf(float);
^
[........]
24 errors generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant