# Problems to link winfis32.dll file on my app Unresolved External

**URL:** <https://clarionhub.com/t/problems-to-link-winfis32-dll-file-on-my-app-unresolved-external/3844>\
**Category:** uncategorized\
**Created:** [February 11, 2021, 5:26pm UTC](https://clarionhub.com/t/problems-to-link-winfis32-dll-file-on-my-app-unresolved-external/3844 "2021-02-11T17:26:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![francisco\_viviers](https://clarionhub.com/user_avatar/clarionhub.com/francisco_viviers/32/1965_2.png) [@francisco\_viviers](https://clarionhub.com/u/francisco_viviers)\
**Post date:** [February 11, 2021, 5:26pm UTC](https://clarionhub.com/t/problems-to-link-winfis32-dll-file-on-my-app-unresolved-external/3844/1 "2021-02-11T17:26:40Z")

</div>

Hi all,

I have a external dll that i want to use in my app, i’ve used libmaker to generate .lib and imported that file as a module, after that i created all the procedures as external in my app with their prototypes, but when i build my solution i get this error:

Unresolved External OPENCOMFISCAL@Fll in file004.obj  
Unresolved External INITFISCAL@Fl in file004.obj  
Unresolved External CLOSECOMFISCAL@Fl in file005.obj  
Unresolved External MANDAPAQUETEFISCAL@Flsb in file003.obj  
Unresolved External ULTIMARESPUESTA@Flsb in file003.obj

can anyone help me with this?

Regards

---

<div class="post-metadata">

**Author:** ![CarlBarnes](https://clarionhub.com/user_avatar/clarionhub.com/carlbarnes/32/1859_2.png) [@CarlBarnes](https://clarionhub.com/u/CarlBarnes)\
**Post date:** [February 11, 2021, 6:32pm UTC](https://clarionhub.com/t/problems-to-link-winfis32-dll-file-on-my-app-unresolved-external/3844/3 "2021-02-11T18:32:04Z")

</div>

> [@francisco\_viviers](#):
>
> i’ve used libmaker to generate .lib
> 
> Unresolved External OPENCOMFISCAL@Fll in file004.obj

The imports show Clarion name mangling “@Fl” so was the DLL was made with another Clarion APP?

If yes then you should not need to make a .LIB with LibMaker because the build makes a .LIB … but it is confusing that the LIB is in the OBJ Release or Debug folder…

… Do this so build of the DLL APP puts the LIB in your EXE / DLL folder:

> [@Editing Default Redirection RED file to create .LIB with .DLL in project folder](https://clarionhub.com/t/editing-default-redirection-file/1646):
>
> The redirection file in Clarion determines where the IDE reads files from, and writes files to. By default, EXE and DLL files are created in the same folder as the APP, but LIB files are stored in 2 places, in \OBJ\DEBUG when compiling in debug mode and \OBJ\RELEASE when compiling in release mode. Unfortunately separating DLL and LIB files can cause some major problems in your app, ones which are difficult to spot and can result in “random” (very strange) behaviours. This is especially the cas…

Did you fill in the Name with your .LIB file?

 ![modName](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/1/1fbe22b4f57b96de7e40754e357c5b9ad323e193.png)

Was the Dll NOT from a Clarion APP ? Then to remove the mangling “@Fl” you’ll need to add PASCAL, C or a NAME().

---

<div class="post-metadata">

**Author:** ![Graham\_Dawson](https://clarionhub.com/user_avatar/clarionhub.com/graham_dawson/32/1331_2.png) [@Graham\_Dawson](https://clarionhub.com/u/Graham_Dawson)\
**Post date:** [February 12, 2021, 3:48pm UTC](https://clarionhub.com/t/problems-to-link-winfis32-dll-file-on-my-app-unresolved-external/3844/4 "2021-02-12T15:48:10Z")

</div>

Looks like this WINF132.DLL Carl

> **[HMG 3.1.1 y WINFI32.DLL (para Argentina) - HMGforum.com](https://www-hmgforum-com.translate.goog/viewtopic.php?t=2830&_x_tr_sch=http&_x_tr_sl=es&_x_tr_tl=en&_x_tr_hl=en&_x_tr_pto=sc)**

---

<div class="post-metadata">

**Author:** ![francisco\_viviers](https://clarionhub.com/user_avatar/clarionhub.com/francisco_viviers/32/1965_2.png) [@francisco\_viviers](https://clarionhub.com/u/francisco_viviers)\
**Post date:** [February 12, 2021, 4:44pm UTC](https://clarionhub.com/t/problems-to-link-winfis32-dll-file-on-my-app-unresolved-external/3844/5 "2021-02-12T16:44:22Z")

</div>

Hi there thanks for answer, winfis32.dll is not made on Clarion Compiler, i used libmaker to generate lib to import its procedures. first i did it using MODULE(‘winfis32.lib’) declaration by i had same issue. Then i choose to add it using “Application → Insert Module” but had same result

---

<div class="post-metadata">

**Author:** ![francisco\_viviers](https://clarionhub.com/user_avatar/clarionhub.com/francisco_viviers/32/1965_2.png) [@francisco\_viviers](https://clarionhub.com/u/francisco_viviers)\
**Post date:** [February 12, 2021, 5:04pm UTC](https://clarionhub.com/t/problems-to-link-winfis32-dll-file-on-my-app-unresolved-external/3844/6 "2021-02-12T17:04:51Z")

</div>

This is the module way i tried

 ![winfis32](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/4/4b761637e3524835f614cfbb24d71920ae4c91bd.jpeg)

---

<div class="post-metadata">

**Author:** ![Rick\_UpperPark](https://clarionhub.com/user_avatar/clarionhub.com/rick_upperpark/32/346_2.png) [@Rick\_UpperPark](https://clarionhub.com/u/Rick_UpperPark)\
**Post date:** [February 12, 2021, 5:11pm UTC](https://clarionhub.com/t/problems-to-link-winfis32-dll-file-on-my-app-unresolved-external/3844/7 "2021-02-12T17:11:52Z")

</div>

Francisco, can you post the .lib file either here or somewhere we can download and take a look at it?

---

<div class="post-metadata">

**Author:** ![francisco\_viviers](https://clarionhub.com/user_avatar/clarionhub.com/francisco_viviers/32/1965_2.png) [@francisco\_viviers](https://clarionhub.com/u/francisco_viviers)\
**Post date:** [February 12, 2021, 5:16pm UTC](https://clarionhub.com/t/problems-to-link-winfis32-dll-file-on-my-app-unresolved-external/3844/8 "2021-02-12T17:16:54Z")

</div>

Rick here you can download winfis32.dll

[https://drive.google.com/drive/folders/1Xm2HrJzgp7zxZfBf0Kk-I7qmheaOhUS-?usp=sharing](https://drive.google.com/drive/folders/1Xm2HrJzgp7zxZfBf0Kk-I7qmheaOhUS-?usp=sharing)

---

<div class="post-metadata">

**Author:** ![CarlBarnes](https://clarionhub.com/user_avatar/clarionhub.com/carlbarnes/32/1859_2.png) [@CarlBarnes](https://clarionhub.com/u/CarlBarnes)\
**Post date:** [February 12, 2021, 5:23pm UTC](https://clarionhub.com/t/problems-to-link-winfis32-dll-file-on-my-app-unresolved-external/3844/9 "2021-02-12T17:23:24Z")

</div>

> [@Graham\_Dawson](#):
>
> Looks like this WINF132.DLL Carl

Thanks @Graham_Dawson ! I should have thought to use The Goolge to look up one of those names

@francisco_viviers Nice screen capture, made it easy to understand.

Try adding PASCAL,RAW,DLL(1) to all of those Prototype lines in your INC file. Also the STRING’s cannot be STRING because that is for calling Clarion. They will very likely need to be \*CSTRING

Found C++ on web

```auto
int PASCAL OpenTcpFiscal(char *HostName, int Socket, long TimeoutMilisecs, int Mode)

```

Should be Clarion:

```auto
OpenTcpFiscal(*CSTRING HostName, LONG Socket, long TimeoutMilisecs, LONG Mode),LONG,PASCAL,RAW,DLL(1)

```

Found: [OCX or .h +.lib + .dll&#63; | Qt Forum](https://forum.qt.io/topic/13662/ocx-or-h-lib-dll-63)

---

<div class="post-metadata">

**Author:** ![francisco\_viviers](https://clarionhub.com/user_avatar/clarionhub.com/francisco_viviers/32/1965_2.png) [@francisco\_viviers](https://clarionhub.com/u/francisco_viviers)\
**Post date:** [February 12, 2021, 5:48pm UTC](https://clarionhub.com/t/problems-to-link-winfis32-dll-file-on-my-app-unresolved-external/3844/10 "2021-02-12T17:48:16Z")

</div>

Thank you all… @CarlBarnes It works! thank you very much im kind a big newbie linking external dll… so this is new knowledge aquired for me.
