Skip to content

'go get' command doesn't work #1

@Vertylo

Description

@Vertylo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions