Open Huwaiza opened 5 years ago
You will need to have [clang installed](https://clang.llvm.org. Clang is a C compiler and does the parsing of the source files and produces an AST that can be understood by c2go.
Installed it but still was showing errors even on the programs you gave as an example
On Mon, Apr 15, 2019 at 4:18 AM Elliot Chance notifications@github.com wrote:
You will need to have [clang installed](https://clang.llvm.org. Clang is a C compiler and does the parsing of the source files and produces an AST that can be understood by c2go.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/elliotchance/c2go/issues/824#issuecomment-483067185, or mute the thread https://github.com/notifications/unsubscribe-auth/Am4GJjMgm5ETitdOqAuqb2pmwImy1p_Xks5vg7dUgaJpZM4cuo2x .
Please include the errors in the issue.
It's fib.c
panic: could not match regexp with string
^(?P[0-9a-fx]+) <(?P
goroutine 52 [running]: github.com/elliotchance/c2go/ast.groupsFromRegex(0xc0000346e0 http://github.com/elliotchance/c2go/ast.groupsFromRegex(0xc0000346e0, 0xa6, 0xc0005733bc, 0x55, 0x3d)
C:/Users/huwai/OneDrive/Documents/GitHub/c2go/ast/unary_operator.go:16 +0x69 github.com/elliotchance/c2go/ast.Parse(0xc0005733ae http://github.com/elliotchance/c2go/ast.Parse(0xc0005733ae, 0x63, 0x6c564d, 0x5)*
On Mon, Apr 15, 2019 at 8:01 AM Elliot Chance notifications@github.com wrote:
Please include the errors in the issue.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/elliotchance/c2go/issues/824#issuecomment-483091854, or mute the thread https://github.com/notifications/unsubscribe-auth/Am4GJv5FLm6__VzydAUBgnteE8LFGbdRks5vg-uRgaJpZM4cuo2x .
That error is caused by c2go not being able to understand the output from clang.
Unfortunately, you are seeing this because no windows distributions are part of the CI pipeline. They are less thoroughly tested than the Linux version.
You can have a go at fixing this by covering the case by following this example: https://github.com/elliotchance/c2go/pull/760/files
Please try https://github.com/Konstantin8105/c4go
Thanks but i have already done it manually
On Mon, Apr 22, 2019 at 5:26 PM Konstantin notifications@github.com wrote:
Please try https://github.com/Konstantin8105/c4go
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/elliotchance/c2go/issues/824#issuecomment-485406028, or mute the thread https://github.com/notifications/unsubscribe-auth/AJXAMJV7TQMFDJQQKIGVTXTPRWVH3ANCNFSM4HF2RWYQ .
@Huwaiza
Please post the fix here for this issue... I am also getting exactly same issue....
My file is not being converted to .go Error: preprocess for file: [prime.c] failed: exec: "clang": executable file not found in %PATH% StdErr =