Skip to content
This repository has been archived by the owner on Nov 22, 2018. It is now read-only.

99c: mismatched type, got **struct{...}, expected *[2]*struct{...} #5

Closed
ghost opened this issue Oct 12, 2017 · 2 comments
Closed

99c: mismatched type, got **struct{...}, expected *[2]*struct{...} #5

ghost opened this issue Oct 12, 2017 · 2 comments
Assignees
Labels
Projects

Comments

@ghost
Copy link

ghost commented Oct 12, 2017

I tried to compile https://github.com/google/zopfli and got this error:

cd src/zopfli
99c -o zopfli -lm *.c

99c: mismatched type, got **struct{weight uint64,tail *struct{},count int32},
expected *[2]*struct{weight uint64,tail *struct{},count int32}
BoundaryPM:0x8: element &[int32], *[2]*struct{weight uint64,tail *struct{},count int32} ; katajainen.c:73:19
@cznic
Copy link
Owner

cznic commented Oct 12, 2017

I will try to fix the bug, but note that -l is documented to not yet do anything. You will need to name the .o file (made by 99c -c ...) on the command line. -L is not yet implemented either.

@cznic cznic self-assigned this Oct 12, 2017
@cznic cznic added the bug label Oct 12, 2017
cznic pushed a commit to cznic/ccir that referenced this issue Oct 12, 2017
	new file:   testdata/99c_issue5.c
@cznic
Copy link
Owner

cznic commented Oct 12, 2017

Hint: To update the compiler, dependencies and all tools

$ cd $GOPATH/src/github.com/cznic/99c
$ go generate

@cznic cznic added this to Issues in zopfli Oct 13, 2017
cznic pushed a commit to cznic/virtual that referenced this issue Oct 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
zopfli
Issues
Development

No branches or pull requests

1 participant