Can't build working DLL with CW 7 x86 compiler

Can't build working DLL with CW 7 x86 compiler

Post by Sven Axelsson - Konsult 19 » Tue, 07 Nov 1995 04:00:00

We are trying to use the CW 7 Intel compiler to build externals for the
4th Dimension database, so far with little success.
The problem seems to be that 4D cannot identify the entry point in the
DLL, or maybe it cannot recognise the dll as a valid external module.
When 4D starts we get error #-1 (The external module cannot be executed.)
We are trying with project settlings that look something like this:


#include "ASIPort.h" // Well, we're actually using it from a precompiled header

pascal void FourDPack(long entryPoint, PackagePtr params, Handle *data, ResultPtr
pascal void main(long entryPoint, PackagePtr params, Handle *data, ResultPtr resu


Link libraries:


x86 linker options:

Entry Point Usage: None
Sub System: Windows GUI

x86 Project options:

Output File Type: DLL

Resource file:

Contains 4BNX and matching STR# resource as usual.

Maybe the name of the entry point isn't supposed to be FourDPack, even though
it is in the examples provided on the 4D Prerelease CD. Or maybe the problem
is that the exported entry point name seems to be mangled by CW and, at least

can't remember right now.) The source is plain C, so no C++ name mangling
should occur.

Any help in getting this to work would be greatly appreciated.

Sven Axelsson, Evolvera AB


1. Does CW x86 compiler support 'long long'?

Does CW x86 c compiler support 64 bit integer type, 'long long' ? it it
does, what version?

sorry for stupid question, but I'm using academic 96/97(equivalant to cw 11).

I'm going to port l2tpd(linux version) to windows, and finding c compiler
which support 64 bit integer. I don't know how to set up so sophisticated
djgpp, or something similar. umm..

[..'] Do you remember those days : Hello World !!

2. Can't open FP2000 web using FP2002

3. Building x86 DLLs and DEF files

4. ARCnet & EtherNET ?

5. Urgent help needed - building x86 DLL Plug-In

6. Freeware RMON Ethernet Network monitor for SunOS and Ultrix

7. x86 DLL Building problems

8. (none)

9. dll's that won't work with excel(windows) 7.0

10. MW's CW/9 x86 compiler not up to speed!

11. x86 compiler and 'virtual inline'

12. CW DLL to Delphi/VB, what's "DLL.LIB.Lib"?

13. x86: BITMAP/Resources/DLL's