Silverfrost Forums

Welcome to our forums

Problem with subroutine in C

10 Mar 2017 1:07 #19041

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.

10 Mar 2017 1:11 #19042

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

10 Mar 2017 4:01 #19044

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.

11 Mar 2017 9:57 #19060

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

I will try to build a small example.

13 Mar 2017 8:56 #19092

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

How can I send this example?

Please login to reply.