1
Setup & Installation / Re: Effective/efficient partition set-up for OS/2 Warp 4.52
« Last post by KevinP on Today at 04:09:04 pm »I did check and do have access to C: from both OS/2 partitions which is really neat. Thanks
OS2World.com Forum is back !!!
Remember to visit OS2World at:
http://www.os2world.com
No, F: doesn't need an install, just formatting.
Edit: ideally E: should have been an extended partition so you wouldn't have to hide C:
Improve as you like!I've now tested to attach a file... and to my surprize it seem to work, but...
...
- Haven't checked code to handle attachments.
- The script/web browser may not show code returned (see the file "log") with the JSON reply from the AI chat server and thus need your TLC.
Tree attached, not sure how to test.
Looks like you need to turn off stack checking for a DLL which indeed makes sense (DLLs use the stack of the calling app). I forgot which compiler switch does that.
wcc386 -bm -bt=OS2 -6s -fpi87 -fp6 -sg -otexanr -wx -fo=IMP.OBJ IMP.C
Forget what some of them mean. Target i686, use the software floating point library to avoid the floating point register bug.H:\tmp\imp>diff -u IMP.LNK.orig IMP.LNK
--- IMP.LNK.orig 2026-06-07 17:16:16.000000000 -0700
+++ IMP.LNK 2026-06-08 09:04:54.000000000 -0700
@@ -24,16 +24,29 @@
OPTION description 'Input Method Profiler'
# DLL initialisation entry point (LibMain in IMP.C)
-OPTION start=LibMain_
+# OPTION start=LibMain_
-# Import libraries ÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇ
ÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔö
öÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇ
+# Import libraries
# OS2386.LIB : DosXxx, WinXxx, PrfXxx kernel stubs
# (supplied with the OS/2 Developer's Toolkit or Open Watcom itself)
LIBRARY os2386
# Stack / data options
OPTION manyautodata
-OPTION nodefaultlibs
+# OPTION nodefaultlibs
+
+# Options taken from the screensaver
+OPTION ELIMINATE
+# OPTION MANYAUTODATA
+OPTION OSNAME='OS/2 and ArcaOS'
+OPTION SHOWDEAD
# Output
OPTION map=IMP.MAP
+
+EXPORT IMPSETAIMPROFILE.1 = IMPSETAIMPROFILE RESIDENT
+EXPORT IMP32SetAIMProfile.2 = IMP32SetAIMProfile RESIDENT
+EXPORT IMPRESETAIMPROFILE.3 = IMPRESETAIMPROFILE RESIDENT
+EXPORT IMPQUERYAIMPROFILE.4 = IMPQUERYAIMPROFILE RESIDENT
+EXPORT IMP32ResetAIMProfile.5 = IMP32ResetAIMProfile RESIDENT
+EXPORT IMP32QueryAIMProfile.6 = IMP32QueryAIMProfile RESIDENT
The garbage characters were underlines, truncated.Looking further, the line to compile IMP.OBJ needs -bd (build a DLL) and maybe should use wcc386, likeCode: [Select]wcc386 -bt=os2 -bd -bm -fo=IMP.OBJ IMP.C
The linker part seems to be totally broken as it uses an OS/2 type def file instead of passing everything on the cmd line (or response files) to wlink.
I fixed the exports part of @IMP.LNK,Code: [Select]EXPORT IMPSETAIMPROFILE.1 = IMPSETAIMPROFILE RESIDENTbut it needs more libraries I think, not sure exactly which and have to be careful to use the multithreaded ones I think.
EXPORT IMP32SetAIMProfile.2 = IMP32SetAIMProfile RESIDENT
EXPORT IMPRESETAIMPROFILE.3 = IMPRESETAIMPROFILE RESIDENT
EXPORT IMPQUERYAIMPROFILE.4 = IMPQUERYAIMPROFILE RESIDENT
EXPORT IMP32ResetAIMProfile.5 = IMP32ResetAIMProfile RESIDENT
EXPORT IMP32QueryAIMProfile.6 = IMP32QueryAIMProfile RESIDENTCode: [Select][H:\tmp\imp]wlink @IMP.LNKI thought the -bd would take care of the __DLLstart_ and LibMain_ but I'm missing something.
** EXPERIMENTAL (HLL) ** Open Watcom Linker Version 2.0beta4 Limited Availability by GKYMar 2 2022
Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
loading object files
searching libraries
Error! E2028: LibMain_ is an undefined reference
Error! E2028: __CHK is an undefined reference
Error! E2028: __DLLstart_ is an undefined reference
creating map file
creating an OS/2 32-bit dynamic link library
file IMP.OBJ(H:\tmp\imp\IMP.C): undefined symbol __CHK