Sisyphus wrote:

  > I would try adding -lperl58 to either this command (the command
  > that builds if_perl.o):
  >
  >>  gcc -c -Iproto -DWIN32 -DWINVER=0x0400 -D_WIN32_WINNT=0x0400 
  >> -DHAVE_PATHDEF  -DFEAT_HUGE -DHAVE_GETTEXT -DHAVE_LOCALE_H 
  >> -DDYNAMIC_GETTEXT -DFEAT_OLE -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG 
  >> -DFEAT_GUI_W32  -DFEAT_CLIPBOARD -DFEAT_MBYTE -DFEAT_MBYTE_IME 
  >> -DDYNAMIC_IME -DDYNAMIC_ICONV -pipe -w -march=i386 -Wall 
  >> -IC:\opt\perl/lib/Core  -DFEAT_PERL -LC:\opt\perl/lib/Core 
  >> -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl58.dll\" -O3 
  >> -fomit-frame-pointer -freg-struct-return  -s if_perl.c -o 
  >> gobj/if_perl.o
  >
  > or to this command (the command that builds gvim.exe) :
  >
  >>  gcc -Iproto -DWIN32 -DWINVER=0x0400 -D_WIN32_WINNT=0x0400 
  >> -DHAVE_PATHDEF -DFEAT_HUGE -DHAVE_GETTEXT -DHAVE_LOCALE_H 
  >> -DDYNAMIC_GETTEXT -DFEAT_OLE -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG 
  >> -DFEAT_GUI_W32  -DFEAT_CLIPBOARD -DFEAT_MBYTE -DFEAT_MBYTE_IME 
  >> -DDYNAMIC_IME -DDYNAMIC_ICONV -pipe -w -march=i386 -Wall 
  >> -IC:\opt\perl/lib/Core  -DFEAT_PERL -LC:\opt\perl/lib/Core 
  >> -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl58.dll\" -O3 
  >> -fomit-frame-pointer -freg-struct-return  -s -mwindows -o gvim.exe 
  >> gobj/buffer.o gobj/charset.o gobj/diff.o gobj/digraph.o gobj/edit.o 
  >> gobj/eval.o gobj/ex_cmds.o gobj/ex_cmds2.o gobj/ex_docmd.o 
  >> gobj/ex_eval.o gobj/ex_getln.o gobj/fileio.o gobj/fold.o 
  >> gobj/getchar.o gobj/hardcopy.o gobj/hashtab.o gobj/main.o gobj/mark.o 
  >> gobj/memfile.o gobj/memline.o gobj/menu.o gobj/message.o gobj/misc1.o 
  >> gobj/misc2.o gobj/move.o gobj/mbyte.o gobj/normal.o gobj/ops.o 
  >> gobj/option.o gobj/os_win32.o gobj/os_mswin.o gobj/pathdef.o 
  >> gobj/popupmnu.o gobj/quickfix.o gobj/regexp.o gobj/screen.o 
  >> gobj/search.o gobj/spell.o gobj/syntax.o gobj/tag.o gobj/term.o 
  >> gobj/ui.o gobj/undo.o gobj/version.o gobj/vimrc.o gobj/window.o 
  >> gobj/if_perl.o gobj/if_cscope.o gobj/netbeans.o gobj/gui.o 
  >> gobj/gui_w32.o gobj/gui_beval.o gobj/os_w32exe.o gobj/if_ole.o 
  >> -lkernel32 -luser32 -lgdi32 -ladvapi32
  >> -lcomdlg32 -lcomctl32 -lversion -lwsock32 -loleaut32 -lstdc++ -lole32 
  >> -luuid
  >
  > Or try addding it to *both* of those commands.
  > 
  > Your C:/opt/perl/lib/CORE/libperl58.lib should be capable of
  > defining those references - it's surely just a matter of linking
  > to that file.
  > 
  > Not sure if '-lperl58' will find libperl58.lib. If it doesn't,
  > then create a copy of C:/opt/perl/lib/CORE/libperl58.lib named
  > C:/opt/perl/lib/CORE/libperl58.a .
  
  Added -lperl58 to both.  The first command reported:
  
    gcc: -lperl58: linker input file unused because linking not done 

  The second command resulted in the same undefined reference error.

  Just to be sure, I added -lblah to the second command, and got the
  new error message:

     c:\opt\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: 
cannot find -lblah

  --Suresh

_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to