forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem with subroutine in C

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
dpannhorst



Joined: 29 Aug 2005
Posts: 156
Location: Berlin, Germany

PostPosted: Fri Mar 10, 2017 2:07 pm    Post subject: Problem with subroutine in C Reply with quote

In my project I use a small subroutine written in C. This routine calls GlobalLock and GlobalUnlock. It will be compiled with the SRC compiler.

If I compile and link my project with the new FTN95 8.10 in 32-bit mode SDBG reports missing symbols GlobalLock and GlobalUnlock.

If I compile and link my project in 64-bit mode everything works fine.

Until FTN95 7.xx I had no such problem with 32-bit.
Back to top
View user's profile Send private message Visit poster's website
dpannhorst



Joined: 29 Aug 2005
Posts: 156
Location: Berlin, Germany

PostPosted: Fri Mar 10, 2017 2:11 pm    Post subject: Reply with quote

These are the compilation opten for the C subroutine:

32-bit: SCC SET_MFP.C /ANSI_C /PROTOTYPES /WINDOWS /BINARY $(OBJ)\SET_MFP.OBJ

64-bit: SCC SET_MFP.C /64 /ANSI_C /PROTOTYPES /WINDOWS /BINARY $(OBJ)\SET_MFP.OBJ
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 4777
Location: Salford, UK

PostPosted: Fri Mar 10, 2017 5:01 pm    Post subject: Reply with quote

The C code will be compiled by SCC and (for 32 bits) linked via SLINK.
It is SLINK that reports the missing routines.
GlobalLock and GlobalUnlock are in kernel32.dll and this library is automatically scanned by SLINK.

If you can reduce the build process to simple steps and provide more details then I might be able to work out what is going wrong.
Back to top
View user's profile Send private message
dpannhorst



Joined: 29 Aug 2005
Posts: 156
Location: Berlin, Germany

PostPosted: Sat Mar 11, 2017 10:57 am    Post subject: Reply with quote

Of cause I meant SLINK and SLINK64 not SDBG and SDBG 64.

I will try to build a small example.
Back to top
View user's profile Send private message Visit poster's website
dpannhorst



Joined: 29 Aug 2005
Posts: 156
Location: Berlin, Germany

PostPosted: Mon Mar 13, 2017 9:56 am    Post subject: Reply with quote

I have reduced my large project to a small example now, which produces the problem still.

How can I send this example?
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group