Skip to content
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

WebAssembly: TDG / Example 5-3. Just the howOld function FAILS #6

Open
MatthijsBerlicum opened this issue Dec 25, 2022 · 2 comments
Open

Comments

@MatthijsBerlicum
Copy link

MatthijsBerlicum commented Dec 25, 2022

A few days ago I bought "WebAssembly: The Definite Guide". I started with chapter 5, which is the most relevant to me.

Environment:
Windows 64-bit
MSYS2 installed in C:\msys64\mingw64

Observed:
PS S:\Git\bsletten\wasm_tdg\ch05> clang --target=wasm32 -nostdlib -Wl,--no-entry -Wl,--export-all howold2.c -o howold2.wasm
At line:2 char:30
+ --target=wasm32 -nostdlib -Wl,--no-entry
+ ~
Missing argument in parameter list.
At line:3 char:4
+ -Wl,--export-all howold2.c -o howold2.wasm
+ ~
Missing argument in parameter list.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingArgument

Expected:
Working example explained, also for Windows users.

Workaround?
I tried a few code variations, but these attempts failed.

Note:
LLVM in Windows expects Microsoft Visual Studio, which I don't have. I use VS Code (like many others do).

@bsletten
Copy link
Owner

bsletten commented Dec 25, 2022 via email

@MatthijsBerlicum
Copy link
Author

MatthijsBerlicum commented Dec 26, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants