Personal info for oldfart

This person is currently certified at Apprentice level.

Name: Peter Bellham

Notes: Long time - almost 40 years - programmer, although as a hobby for the last 15. Currently wanting to use Ghostscript at the dll level under Windows in Perl.

Recent diary entries for oldfart:

7 Jul 2002  »

Been over the bodging which I did to get the Perl module from Forrest to compile under Windows. Have now sent him a Makefile.pl which points the way. Could I ask you Ghostscript guys to add into iapi.h to look for WIN32 being defined, and if so define _Windows, which you use. WIN32 is used under Perl to denote Windows. This might help someone else, I had to hunt down __WINDOWS__.

23 Jun 2002  »

Russell was quite right. It has just taken me most of the day to figure out that I needed to link the gsdll32.lib. My excuse is that I have never done any serious work in C and so the environment is not familiar - never mind, those learning curves are fun. Once I did that it all works. I congratulate Forrest for making Perl to Ghostscript work in the first place, and all those Perl folks who made everything so portable from one platform to another. Can now get on with my project in Perl. We currently have a VB app converting postcript files, plus addressing information, to tiffs using Image Alchemy and then sending them on to either be emailed or faxed out. We experimented with the previous windows ghostscript dll and VB, and the throughput increased wonderfully. Wanted to use Perl with the new dll, and now I can.

22 Jun 2002  »

Wanting to use Ghostscript at the dll level in Windows from Perl. Forrest Cahoon has sent me his work which he has done on VMS. I am having problems making this in a Windows environment - unresolved refs in linker. Appreciate any help - output below.

D:\Documents and Settings\pbellham\My Documents\Perl\Forrest>perl Makefile.PL Note (probably harmless): No library found for '- lD:/Program Files/gs/gs7.04/source/gs7.04/gs' Note (probably harmless): No library found for 'oldnames.lib' Note (probably harmless): No library found for 'kernel32.lib' Note (probably harmless): No library found for 'user32.lib' Note (probably harmless): No library found for 'gdi32.lib' Note (probably harmless): No library found for 'winspool.lib' Note (probably harmless): No library found for 'comdlg32.lib' Note (probably harmless): No library found for 'advapi32.lib' Note (probably harmless): No library found for 'shell32.lib' Note (probably harmless): No library found for 'ole32.lib' Note (probably harmless): No library found for 'oleaut32.lib' Note (probably harmless): No library found for 'netapi32.lib' Note (probably harmless): No library found for 'uuid.lib' Note (probably harmless): No library found for 'wsock32.lib' Note (probably harmless): No library found for 'mpr.lib' Note (probably harmless): No library found for 'winmm.lib' Note (probably harmless): No library found for 'version.lib' Note (probably harmless): No library found for 'odbc32.lib' Note (probably harmless): No library found for 'odbccp32.lib' Note (probably harmless): No library found for 'msvcrt.lib' Writing Makefile for Ghostscript

D:\Documents and Settings\pbellham\My Documents\Perl\Forrest>"D:\Program Files\Microsoft Visual Studio .NET\Vc7\bin\nmake"

Microsoft (R) Program Maintenance Utility Version 7.00.9466 Copyright (C) Microsoft Corporation. All rights reserved.

"D:\Program Files\Microsoft Visual Studio .NET\Vc7 \bin\cl" -c -I"D:\Program Files\Microsoft Visual Studio .NET\Vc7\include" -I"D:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include" -I"D:\Program Files\gs\gs7.04\source\gs7.04" -nologo -O1 -MD -DNDEBUG - DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FC RYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS - DPERL_MSVCRT_READFIX -O1 -MD -DNDEBUG -DVERSION=\"0.01 \" -DXS_VERSION=\"0.01\" -ID:\Perl\lib\CORE Ghostscript.c Ghostscript.c "Running Mkbootstrap for Ghostscript ()" D:\Perl\bin\perl.exe -ID:\Perl\lib -ID:\Perl\lib - MExtUtils::Command -echmod 644 Ghostscript.bs D:\Perl\bin\perl.exe "-ID:\Perl\lib" "- ID:\Perl\lib" -MExtUtils::Mksymlists -e "Mksymlists('NAME' => 'Ghostscript', 'DLBASE' => 'Ghostscript', 'DL_FUNC S' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);" "D:\Program Files\Microsoft Visual Studio .NET\Vc7 \bin\link" -out:blib\arch\auto\Ghostscript\Ghostscript.dll - dll -nologo -nodefaultlib -release - libpath:"D:\Perl\lib\CORE" -libpath:"D:\Program Files\Microsoft Visual Studio .NET\Vc7\lib" - libpath:"D:\Program Files\Microsoft Visual Studio .NET\Vc7 \PlatformSDK\ lib" -machine:x86 Ghostscript.obj D:\Perl\lib\CORE\perl56.lib oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib - def:Ghostscript.def Creating library blib\arch\auto\Ghostscript\Ghostscript.lib and object blib\arch\auto\Ghostscript\Ghostscript.exp Ghostscript.obj : error LNK2019: unresolved external symbol _gsapi_revision referenced in function _XS_Ghostscript_revision Ghostscript.obj : error LNK2019: unresolved external symbol _gsapi_new_instance referenced in function _XS_Ghostscript__new_instance Ghostscript.obj : error LNK2019: unresolved external symbol _gsapi_init_with_args referenced in function _XS_Ghostscript__init_with_args Ghostscript.obj : error LNK2019: unresolved external symbol _gsapi_set_stdio referenced in function _XS_Ghostscript__set_stdio Ghostscript.obj : error LNK2019: unresolved external symbol _gsapi_exit referenced in function _XS_Ghostscript__gsexit Ghostscript.obj : error LNK2019: unresolved external symbol _gsapi_delete_instance referenced in function _XS_Ghostscript__delete_instance Ghostscript.obj : error LNK2019: unresolved external symbol _gsapi_run_string referenced in function _XS_Ghostscript__run_string Ghostscript.obj : error LNK2019: unresolved external symbol _gsapi_run_string_begin referenced in function _XS_Ghostscript__run_string_begin Ghostscript.obj : error LNK2019: unresolved external symbol _gsapi_run_string_continue referenced in function _XS_Ghostscript__run_string_continue Ghostscript.obj : error LNK2019: unresolved external symbol _gsapi_run_string_end referenced in function _XS_Ghostscript__run_string_end Ghostscript.obj : error LNK2019: unresolved external symbol _gsapi_run_file referenced in function _XS_Ghostscript__run_file blib\arch\auto\Ghostscript\Ghostscript.dll : fatal error LNK1120: 11 unresolved externals NMAKE : fatal error U1077: '"D:\Program Files\Microsoft Visual Studio .NET\Vc7\bin\link"' : return code '0x460' Stop.

This person has certified others as follows:

Others have certified this person as follows:

[ Certification disabled because you're not logged in. ]

[ Home | Articles | Account | People | Projects ]