I have an existing application which I must support for a few years
more. Power++ 2.5 and Open Client coming with ASE 11.9.2. It compiles
and links ok.
However, I cannot link with Open Client coming with ASE 12.5.2. (I
didn't try other versions). Power++ freezes on the very final link stage.
Anybody have an idea why Power++ freezes on the link stage?
As a workaround, I link with old open client library and connect to
12.5.2 server and it seems I don't have any problems up to now. Anybody
sees a problem doing this way?
Thank you, my best regards in advance.
Gokhan Demir
What is the link line that Power++ uses? What platform is this on?
Thanks,
Neal
I don't know how to look at the link line Power++ uses. There is no
separate link program as far as I know. only one DLL, wlink.dll, most
probably Power++ is calling it with all the options transparently.
I have tried both adding the lib files libct.lib and libcs.lib to the
Power++ project, and, adding the above libs to the Default Options ->
EXE options -> Library. Of course, just one option at one time. Both
ways did not help. Power++ freezes.
However, when not using any of the above mentioned ways (no added lib to
the project and no lib reference in the EXE->lib options), the linker
complains about not finding CT and CS library functions to link. So, the
linker does not freeze this way.
My environment: Windows XP SP1, Power++ 2.5 (latest EBF), Open Client
(coming with 12.5.2 to freeze link, 11.9.2 to succeed), 512 MB RAM, most
of it is free, Pentium-M 1.7.
Any more info you need, I will be happy to provide; and am watching the
newsgroup for your answer.
Best Regards,
Gokhan Demir
Power++ was end of lifed before I started with Sybase so
I don't know much about it. I found a few technotes on
the Sybase website that might help:
Using Sybase Open Client/Server with Power++ or Watcom C/C++
http://www.sybase.com/detail?id=44621
/* You need to make some modifications to the
** Open Client header files for compatibility.
*/
Using Visual C++ EXEs and DLLs with Power++ and Watcom C/C++
http://www.sybase.com/detail?id=4462
End of Life Notice for Power++ Enterprise Version 2.5
http://www.sybase.com/detail?id=20512
/* You might try one of the PowerBuilder newsgroups
** in case there are some old Power++ users that
** migrated to PowerBuilder.
*/
Thank you for the info. Yes, I had modified the open client header files
in both 11.9.2 and 12.5.2 lines. Here is what happens when I modify the
Power++ project properties as such:
a) When I point to the 11.9.2 include and lib folders, the program
compiles and links successfully.
b) When I point to the new 12.5.2 include and lib folders, the program
compiles successfully, freezes in the link stage.
c) When I point to the new 12.5.2 include folders (and give no clue to
Power++ about where the open client libs are), the program compiles
successfully, and gives error about not finding ct and cs library
functions (reports errors with correct name decoration).
So, it makes me think it can be an issue of the new open client lib file
format. I don't have much info on different lib file formats. Maybe
12.5.2 line uses a different newer format that Power++ does not recognise?
Best Regards,
Gokhan Demir.
Hi back,
I have found a way to link with 12.5.2 open client libs. I have
downloaded and installed OpenWatcom 1.2; copied wlink.dll from
<watcom>/binnt/wlink.dll to <power++>/system (to replace the Power++
version of wlink.dll), and now Power++ links with OC 12.5.2.
Hope someone else finds this info useful.
Best Regards,
Gokhan Demir
I have found a way to link with 12.5.2 open client libs. I have
downloaded and installed OpenWatcom 1.2; copied wlink.dll from
<watcom>/binnt/wlink.dll to <power++>/system (to replace the Power++
version of wlink.dll), and now Power++ links with OC 12.5.2.
Hope someone else finds this info useful.
Best Regards,
Gokhan Demir
GD> Hi,
GD> I have an existing application which I must support for a few years more. Power++ 2.5 and Open Client coming
GD> with ASE 11.9.2. It compiles and links ok.
GD> However, I cannot link with Open Client coming with ASE 12.5.2. (I didn't try other versions). Power++ freezes
GD> on the very final link stage.
GD> Anybody have an idea why Power++ freezes on the link stage?
GD> As a workaround, I link with old open client library and connect to 12.5.2 server and it seems I don't have any
GD> problems up to now. Anybody sees a problem doing this way?
I susect OCli 12.5 have .lib files coded in newer format which older Watcom linker can't understand.
One of possible solutions could be using of another linker, f.e. taken from Visual Studio.
------------------------------------
Ilya Zvyagin
E-mail: ziv[AT]fct[dot]ru
ICQ# 29427861