Home > Archive > Clarion > January 2006 > Unresolved External error linking C dll to Clarion 5.5 program
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Unresolved External error linking C dll to Clarion 5.5 program
|
|
| Jim Katz 2006-01-12, 7:55 am |
| I am creating a Clarion program to connect to a POS program written in
C. I have created the Lib file from the c dll using libmaker. The
program compiles w/o errors but fails on the link step with "unresolved
External". The function is prototyped in the H file as:
short int APIENTRY epluread (struct f_parm_ *f_parm_arg, PLU_QDX
*plu_arg)
I have declared it in my Clarion program as:
epluread (*group,*group),short,C,raw,name('eplure
ad'),DLL()
In the notes for the API for the C program it suggests:
"Make sure that f_parm and plu_buff structure members are 1 byte
aligned.
Use /Zp1 in project building or insert #pragma pack 1 in the code."
I have tried using underscores in the Name() attribute as well as using
the Pascal calling convention instead of C. Nothing seems to help. Can
anyone suggest a possible solution?
--
! Jim Katz
! Certified Clarion Developer
! Author: ABC DLL Toolkit Maintainer: DEF for ABC,DET for
Legacy
! Web Site: http://home.iag.net/~jimkatz/
! Company: iTradeZone,Inc.
! Using Clarion for Windows - Always looking for the simpler solution.
! netBeans 5.0 beta
! Sun Java Studio Creator
! Webmaster http://GladiatorOfTheArena.com/gladiatorsgameserver
| |
| clackmannan 2006-01-12, 7:55 am |
| What does CW show the name of the procedure as, and what's the name of
the procedure in the .lib file (just open the .lib in notepad and
search for it) ?
Paul
| |
| Jim Katz 2006-01-12, 7:55 am |
| Hi Paul,
In Libmaker the name is epluread and it appears the same when opening in
notepad except for the unprintable characters.
Jim
clackmannan wrote:
>
> What does CW show the name of the procedure as, and what's the name of
> the procedure in the .lib file (just open the .lib in notepad and
> search for it) ?
>
> Paul
--
! Jim Katz
! Certified Clarion Developer
! Author: ABC DLL Toolkit Maintainer: DEF for ABC,DET for
Legacy
! Web Site: http://home.iag.net/~jimkatz/
! Company: iTradeZone,Inc.
! Using Clarion for Windows - Always looking for the simpler solution.
! netBeans 5.0 beta
! Sun Java Studio Creator
! Webmaster http://GladiatorOfTheArena.com/gladiatorsgameserver
| |
| Jim Katz 2006-01-12, 6:55 pm |
| Ok, I got it to link correctly by using the IDE function to insert
module, adding the C DLL.
Thanks,
Jim
Jim Katz wrote:
>
> Hi Paul,
> In Libmaker the name is epluread and it appears the same when opening in
> notepad except for the unprintable characters.
>
> Jim
>
> clackmannan wrote:
>
--
! Jim Katz
! Certified Clarion Developer
! Author: ABC DLL Toolkit Maintainer: DEF for ABC,DET for
Legacy
! Web Site: http://home.iag.net/~jimkatz/
! Company: iTradeZone,Inc.
! Using Clarion for Windows - Always looking for the simpler solution.
! netBeans 5.0 beta
! Sun Java Studio Creator
! Webmaster http://GladiatorOfTheArena.com/gladiatorsgameserver
|
|
|
|
|