Error : Cannot load or find external library (cbtti51.dll)

Discussions specific to Team Developer 5.1.

Error : Cannot load or find external library (cbtti51.dll)

Postby alisa.nua » Wed Nov 11, 2015 8:31 pm

I got this error while compiling my code. I have cbtti51.dll in C:\Program Files (x86)\Unify\Team Developer 5.1 and
my paths are setup as below which should be able to access to the dll. Please help me solve this issue.

PS. I'm running on Windows Server 2008 R2 Standard

Environment Path:
C:\Program Files (x86)\Unify\Team Developer 5.1;C:\Program Files (x86)\Unify\Team Developer 5.1\Samples;C:\Program Files (x86)\Unify\Team Developer 5.1\Classcisaj;C:\Program Files (x86)\Unify\Team Developer 5.1\Classvts;C:\Program Files (x86)\Unify\Team Developer 5.1\axis2c\lib;C:\Program Files (x86)\Unify\Team Developer 5.1;C:\Oracle\Administrator\product\11.2.0\client_1\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\

Preferences Global Path:
C:\Program Files (x86)\Unify\Team Developer 5.1;C:\Program Files (x86)\Unify\Team Developer 5.1\Samples;C:\Program Files (x86)\Unify\Team Developer 5.1\Classcisaj;C:\Program Files (x86)\Unify\Team Developer 5.1\Templates;C:\Program Files (x86)\Unify\Team Developer 5.1\AXLibs;C:\Program Files (x86)\Unify\Team Developer 5.1\CDK\SAL;C:\Program Files (x86)\Unify\Team Developer 5.1\CDK\SAL\SAMPLES;C:\Program Files (x86)\Unify\Team Developer 5.1\Pics;

error.png

cbtti51.png
You do not have the required permissions to view the files attached to this post.
alisa.nua
 
Posts: 20
Joined: Wed Nov 11, 2015 8:21 pm

Re: Error : Cannot load or find external library (cbtti51.dl

Postby mvandine » Wed Nov 11, 2015 9:06 pm

Hi,

You might check the dll with a 'depends' or 'dependency walker', etc. to see what other dll might be required to load that dll.

Best regards,
Mike Vandine
Gupta Technologies
User avatar
mvandine
 
Posts: 4120
Joined: Wed Feb 14, 2007 4:15 pm
Location: Perth, Western Australia

Re: Error : Cannot load or find external library (cbtti51.dl

Postby alisa.nua » Wed Nov 11, 2015 9:54 pm

I will try. Thank you for the quick response!
alisa.nua
 
Posts: 20
Joined: Wed Nov 11, 2015 8:21 pm

Re: Error : Cannot load or find external library (cbtti51.dl

Postby Dave Rabelink » Wed Nov 11, 2015 11:20 pm

If Mikes suggestion does not help finding the issue:

Also check this. I always had troubles getting TD 5.1 working on dll's and I solved it by renaming dll's having no ".dll" specified.

So rename the dll in the source from "cbtti51.dll" to "cbtti51".

(this is really annoying. After a fresh TD 5.1 install, and only on TD 5.1, I have to change all base libraries (vt*.apl) and remove the ".dll" from the names before I can compile any source.)
Regards,
Dave Rabelink

Image
Articles on Team Developer Wiki
Download samples from TD Sample Vault

Image
Go forward! Come join the TD, SqlBase & TDMobile community on
Team Developer Community Forum
User avatar
Dave Rabelink
 
Posts: 1655
Joined: Sat Feb 17, 2007 12:01 am
Location: Gouda, The Netherlands

Re: Error : Cannot load or find external library (cbtti51.dl

Postby alisa.nua » Wed Nov 11, 2015 11:51 pm

I've tried the rename method, it doesn't work for me.

Also, dependency walker throw me these errors and warning :
Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
Error: Modules with different CPU types were found.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.

I still have no idea what to do with it.
alisa.nua
 
Posts: 20
Joined: Wed Nov 11, 2015 8:21 pm

Re: Error : Cannot load or find external library (cbtti51.dl

Postby alisa.nua » Fri Nov 27, 2015 1:36 am

One DLL is missing,
Any suggestions on how to solve this ?
Capture.PNG
You do not have the required permissions to view the files attached to this post.
alisa.nua
 
Posts: 20
Joined: Wed Nov 11, 2015 8:21 pm

Re: Error : Cannot load or find external library (cbtti51.dl

Postby Charlie » Fri Nov 27, 2015 4:54 am

Silly questions:

Are you getting this error on a computer that used to compile code without errors ?

By any chance, is there more than one cbtti51.dll on the computer ?

What functions do you have specified under the library cbtti51.dll ?

And, instead of specifying external functions for cbtti51.dll, why not simply just include qckttip.apl in the libraries section ?
Image

Come join us at Dave Rabelink's "Team Developer Community Forum"!
All users of OpenText™ Gupta Development Tools and Databases welcome!
http://tdforum.daverabelink.net/index.php
Charlie
 
Posts: 345
Joined: Mon Mar 10, 2008 5:04 am
Location: New Brunswick, Canada

Re: Error : Cannot load or find external library (cbtti51.dl

Postby Jeff @ PC Design » Fri Nov 27, 2015 10:32 am

why not simply just include qckttip.apl in the libraries section ?

Good suggestion, Charlie. Including the APL is the correct way to get a particular TD functionality, that that will also load in any required constants, any other DLL(s) that are part of the APL's functionality, etc.

See the attached image, because I had to hack the v5.1 APL to get my v5.1 to compile OK. I have a 5.1 folder, not in my PATH, and as you see in the image had to prepend the full path for the APL to get read in OK.

THEN... it wouldn't compile because it said it couldn't find 'cbtti51.dll.' Silly, but it appears that v5.1 doesn't use the current/local path that the APL has to find the DLL. (a BUG that will never get fixed since 5.1 is so old.)

So you see from the attached image what I had to do to get it to compile: open the APL, and put the full path directly in the Ext. Lib. entry. Once I did that, then my test does compile OK. I don't ever remember this issue back in the 5.1 days of 2008 or so, but I tried with v5.2 and no lib. name full path hack is required.

ALISA.NUA -- it seems this is what you will need to do as well. That is, the lib. name in qckttip.apl needs to be modified so the DLL's full path is added, like this for your installation:
C:\Program Files (x86)\Unify\Team Developer 5.1\cbtti51.dll
You do not have the required permissions to view the files attached to this post.
Jeff Luther/PC Design http://www.jeffluther.net/TD/
Image
Come join us at Dave Rabelink's "Team Dev. Community Forum".
All TD, TDMobile & SQLBase users welcome!
(http://tdforum.daverabelink.net/index.php)
Jeff @ PC Design
 
Posts: 206
Joined: Fri Feb 08, 2013 2:40 pm
Location: Palm Springs, California

Re: Error : Cannot load or find external library (cbtti51.dl

Postby Charlie » Fri Nov 27, 2015 11:05 am

That is some mighty good sleuthing, Jeff !
Image

Come join us at Dave Rabelink's "Team Developer Community Forum"!
All users of OpenText™ Gupta Development Tools and Databases welcome!
http://tdforum.daverabelink.net/index.php
Charlie
 
Posts: 345
Joined: Mon Mar 10, 2008 5:04 am
Location: New Brunswick, Canada

Re: Error : Cannot load or find external library (cbtti51.dl

Postby Jeff @ PC Design » Fri Nov 27, 2015 12:01 pm

LOL-thanks, Charlie! I know 'workaround' is considered to be a bad word by many, but whatever it takes is what you need to do, I guess, especially for the older TDs that are 'cast in concrete' and won't ever get any more bug fixes.
Jeff Luther/PC Design http://www.jeffluther.net/TD/
Image
Come join us at Dave Rabelink's "Team Dev. Community Forum".
All TD, TDMobile & SQLBase users welcome!
(http://tdforum.daverabelink.net/index.php)
Jeff @ PC Design
 
Posts: 206
Joined: Fri Feb 08, 2013 2:40 pm
Location: Palm Springs, California

Re: Error : Cannot load or find external library (cbtti51.dl

Postby alisa.nua » Sun Nov 29, 2015 9:48 pm

Jeff, Your solution works! Thank you.

However, I have so many dlls that I have to make a full path because I'm migrating from version 2.0 to 5.1
for example, I have to change
from gtlsi20.dll to gtlsi51.dll,
from gctli20.dll to gctli51.dll,
from tabli20.dll to tabli51.dll
and so on...

From my understanding, all dlls that ends with 51 have to use full path. (Not sure if my understanding is correct)

Is there any other better way to do this?
alisa.nua
 
Posts: 20
Joined: Wed Nov 11, 2015 8:21 pm

Re: Error : Cannot load or find external library (cbtti51.dl

Postby alisa.nua » Tue Dec 01, 2015 2:37 am

After fixing all the libraries, now I can compile and run my code.

Thank you all for your help.
alisa.nua
 
Posts: 20
Joined: Wed Nov 11, 2015 8:21 pm

Re: Error : Cannot load or find external library (cbtti51.dl

Postby Charlie » Tue Dec 01, 2015 4:45 am

Jeff @ PC Design wrote:LOL-thanks, Charlie! I know 'workaround' is considered to be a bad word by many, but whatever it takes is what you need to do, I guess, especially for the older TDs that are 'cast in concrete' and won't ever get any more bug fixes.


"Workaround" isn't really the expression that pops into my sponge.

"Git 'er done" is the first thing that comes to mind.

If it can be done elegantly and be made pretty, bonus.

In a pinch, though: ugly but expedient will do. ("Coding Solutions", I mean. Philosophically. Like lipstick on a pig. As in the four-legged critter. Hmmm, bacon... SQUIRREL!)

alisa.nua : Glad to hear you've got it all working. Cheers!
Image

Come join us at Dave Rabelink's "Team Developer Community Forum"!
All users of OpenText™ Gupta Development Tools and Databases welcome!
http://tdforum.daverabelink.net/index.php
Charlie
 
Posts: 345
Joined: Mon Mar 10, 2008 5:04 am
Location: New Brunswick, Canada


Return to Team Developer 5.1

Who is online

Users browsing this forum: No registered users and 1 guest

cron