Replies: 1 comment
-
Sorry exact syntax for linkage is 👍 Bye. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I just test generation of shared library on Linux ... Mint Xia (last 2025 version).
I read anywhere that build shared library on Linux is not possible because linker of OW don't generate "Position Independant" on this platform.
I test :
$ wcc386 foo.c -bt=linux -i=/usr/bin/watcom/lh -fo=foo.o
Open Watcom C x86 32-bit Optimizing Compiler
Version 2.0 beta Jan 23 2025 02:12:25 (64-bit)
Copyright (c) 2002-2025 The Open Watcom Contributors. All Rights Reserved.
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See https://github.com/open-watcom/open-watcom-v2#readme for details.
foo.c: 8 lines, included 1222, 0 warnings, 0 errors
Code size: 20
$ wlink file foo.o name libfoo.so form ELF DLL ,, un LIN LIBP /usr/bin/watcom/lib386/linux LIBP /usr/bin/watcom/lib386
Open Watcom Linker Version 2.0 beta Jan 23 2025 02:09:41 (64-bit)
Copyright (c) 2002-2025 The Open Watcom Contributors. All Rights Reserved.
Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See https://github.com/open-watcom/open-watcom-v2#readme for details.
loading object files
Error! E2028: _CHK is an undefined reference
Error! E2028: puts is an undefined reference
creating an ELF dynamic link library
file foo.o(foo): undefined symbol _CHK
file foo.o(foo): undefined symbol puts
Unsurprizing, last error seem to be identified ... because OW on Linux don't generate shared library (Sniff).
Then, when this evolution will be treated (yes 32 bit only) ?
Thank's.
Beta Was this translation helpful? Give feedback.
All reactions