Skip to content

Commit 2b2beda

Browse files
authored
[SYCL][Doc] Fix shared libraries design doc typo (#7443)
Two problems with this example: 1) shared object name needs lib prefix as that's what ld looks for 2) Need to include pwd as path for ld to look for Signed-off-by: Sarnie, Nick <[email protected]>
1 parent a57d0ae commit 2b2beda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/doc/design/SharedLibraries.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ SYCL_EXTERNAL int LibDeviceFunc(int i) {
3131
3232
```bash
3333
; Commands
34-
clang++ -fsycl lib.cpp -shared -o helpers.so
35-
clang++ -fsycl app.cpp -lhelpers -o a.out
34+
clang++ -fsycl lib.cpp -shared -o libhelpers.so
35+
clang++ -fsycl app.cpp -L. -lhelpers -o a.out
3636
./a.out
3737
Output: 0 2 4 6 ...
3838
```

0 commit comments

Comments
 (0)