You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is only two ways to transpile multiple files correctly:
Merge all of the C files into a single C file to preprocess and transpile, resulting in one large Go file. (This is what we do as of v0.17.0).
Transpile each C file completely independently (they do not affect each other at all) generating one Go file for each input C file. Then we remove the duplicated after the Go is produced. This is where we hope to get to. See Unused types, constants, vars #232 (comment).
Now, we have the problem in multifile transpilation is separating
#define
on each file.Solution
Example :
c2go transpile 1.c 2.c 3.c ....
1.c
like that:Output:
-D
of clang.Link for help: https://clang.llvm.org/docs/ClangCommandLineReference.html#dumping-preprocessor-state
Main task for issue: Transling sqlite files
shell.c
andsqlite3.c
in one.The text was updated successfully, but these errors were encountered: