SCOUG Logo


Next Meeting: Sat, TBD
Meeting Directions


Be a Member
Join SCOUG

Navigation:


Help with Searching

20 Most Recent Documents
Search Archives
Index by date, title, author, category.


Features:

Mr. Know-It-All
Ink
Download!










SCOUG:

Home

Email Lists

SIGs (Internet, General Interest, Programming, Network, more..)

Online Chats

Business

Past Presentations

Credits

Submissions

Contact SCOUG

Copyright SCOUG



warp expowest
Pictures from Sept. 1999

The views expressed in articles on this site are those of their authors.

warptech
SCOUG was there!


Copyright 1998-2024, Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.

The Southern California OS/2 User Group
USA

SCOUG-Programming Mailing List Archives

Return to [ 12 | September | 2005 ]

<< Previous Message << >> Next Message >>


Date: Mon, 12 Sep 2005 05:45:34 PDT7
From: "Harry Motin" <hmotin@sbcglobal.net >
Reply-To: scoug-programming@scoug.com
To: "SCOUG Programming" <scoug-programming@scoug.com >
Subject: SCOUG-Programming: Undefined References

Content Type: text/plain

Hello,
I need some help getting the Watcom compiler to work with OS/2 Toolkit code. I have
two WPS methods written into my code. They are:

_wpQueryProgDetails(Self, pProgDetails, &ulSize)

_wpAllocMem(Self, ulSize, NULL)

When I try to make my source files, I get a warning that I have two undefined references
as follows:

_wpQueryProgDetails_

_wpAllocMem_

In other words, my two WPS methods now have an underscore added to them at the
end. I now know that the Watcom compiler does that to external functions. OK!

I did some reading/searching and I'm lead to believe that I can solve this problem by
adding a "#pragma" directive to my code. In fact, the Watcom documentation lists the
following statement to be added:

#pragma aux __syscall "*" parm caller [] value struct struct caller [] modify [eax
ecx edx]

I added to the above to my code, but I still have the problem with the addition of the
underscores. Any help on this would be appreciated. Thank you.
HCM

=====================================================

To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-programming".

For problems, contact the list owner at
"postmaster@scoug.com".

=====================================================


<< Previous Message << >> Next Message >>

Return to [ 12 | September | 2005 ]



The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA

Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.