-
Notifications
You must be signed in to change notification settings - Fork 21
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
Comments
<div></div><div>A few days ago I bought "WebAssembly: The Definite Guide". I started with chapter 5, which is the most relevant to me.
<br/>
<br/>**Environment:**
<br/>Windows 64-bit
<br/>MSYS2 installed in C:\msys64\mingw64
<br/>
<br/>**Observed:**
<br/>`PS S:\Git\bsletten\wasm_tdg\ch05> clang --target=wasm32 -nostdlib -Wl,--no-entry -Wl,--export-all howold2.c -o howold2.wasm`
<br/>`At line:2 char:30`
<br/>`+ --target=wasm32 -nostdlib -Wl,--no-entry`
<br/>`+ ~`
<br/>`Missing argument in parameter list.`
<br/>`At line:3 char:4`
<br/>`+ -Wl,--export-all howold2.c -o howold2.wasm`
<br/>`+ ~`
<br/>`Missing argument in parameter list.`
<br/>` + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException`
<br/>` + FullyQualifiedErrorId : MissingArgument`
<br/>
<br/>**Expected:**
<br/>Example explaned, also for Windows users.
<br/>
<br/>**Workaround?**
<br/>I tried a few code variations, but these attempts failed.
<br/>
<br/>**Note:**
<br/>LLVM in Windows expects Microsoft Visual Studio, which I don't have. I use VS Code (like many others do).
<br/>
<br/>--
<br/>Reply to this email directly or view it on GitHub:
<br/>#6
<br/>You are receiving this because you are subscribed to this thread.
<br/>
<br/>Message ID: ***@***.***></div>
|
[image: image.png]
Picture added. This is always useful.
Dear Brian,
I am investigating the issue. When a solution is found, I will mention this
on GitHub.
Please advise me if you have any suggestions, but don't spend too much time
on it.
Many thanks,
Matthijs
Op zo 25 dec. 2022 om 22:57 schreef Brian Sletten ***@***.***
…:
<div></div><div>A few days ago I bought "WebAssembly: The Definite Guide".
I started with chapter 5, which is the most relevant to me.
<br/>
<br/>**Environment:**
<br/>Windows 64-bit
<br/>MSYS2 installed in C:\msys64\mingw64
<br/>
<br/>**Observed:**
<br/>`PS S:\Git\bsletten\wasm_tdg\ch05> clang --target=wasm32 -nostdlib
-Wl,--no-entry -Wl,--export-all howold2.c -o howold2.wasm`
<br/>`At line:2 char:30`
<br/>`+ --target=wasm32 -nostdlib -Wl,--no-entry`
<br/>`+ ~`
<br/>`Missing argument in parameter list.`
<br/>`At line:3 char:4`
<br/>`+ -Wl,--export-all howold2.c -o howold2.wasm`
<br/>`+ ~`
<br/>`Missing argument in parameter list.`
<br/>` + CategoryInfo : ParserError: (:) [],
ParentContainsErrorRecordException`
<br/>` + FullyQualifiedErrorId : MissingArgument`
<br/>
<br/>**Expected:**
<br/>Example explaned, also for Windows users.
<br/>
<br/>**Workaround?**
<br/>I tried a few code variations, but these attempts failed.
<br/>
<br/>**Note:**
<br/>LLVM in Windows expects Microsoft Visual Studio, which I don't have.
I use VS Code (like many others do).
<br/>
<br/>--
<br/>Reply to this email directly or view it on GitHub:
<br/>#6
<br/>You are receiving this because you are subscribed to this thread.
<br/>
<br/>Message ID: ***@***.***></div>
—
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANHL4VTJ5SKFFEJIXRF2SVLWPC7OJANCNFSM6AAAAAATJFTODQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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).
The text was updated successfully, but these errors were encountered: