-
Notifications
You must be signed in to change notification settings - Fork 88
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
Move structs from *.c files to *.h files #23
Comments
You may want to check your link line - that shouldn't happen unless you're linking against the library twice by accident. |
I think you're right, however, I'm not really sure how to do this correctly. Important pieces are LLVM options:
And list of files to compile:
I might say something stupid, since I'm not C developer even remotely, but I think Emscripten takes all of those files, creates object files for each source file specified and then link them together. Which is why |
Isn't that struct supposed to be opaque? |
There is a struct
NoiseRandState_s
, it is defined insrc/protocol/randstate.c
file, which causes difficulties with linking when multiple files included this file:Similarly, for
_Noise_CertificateChain
,_Noise_Certificate
and_Noise_PrivateKey
I have to includesrc/keys/certificate.c
, which is not a problem for me yet, but it does include some functions and might become a problem later.Could you move those structs into
*.h
files with guarding from re-definition as it is for other structs already?The text was updated successfully, but these errors were encountered: