help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [h-e-w] cmdproxy.c link error


From: Frank P Esposito
Subject: Re: [h-e-w] cmdproxy.c link error
Date: Mon, 19 Nov 2012 15:11:58 -0500

Hello --

Thanks for the reply

I am using visual studio .net 2003, or vc 7.1 -- It is fully installed and all
service packs applied

This version of visual studio I think was published in the fall of 2002, so its
10 years old


I unloaded the tar ball, then "cd" to the nt directory, ran "configure.bat" like
this:

configure.bat --with-msvc --no-opt --enable-checking --ldflags -map
--without-png --without-jpeg --without-gif --without-tiff
--without-xpm

then I ran

nmake -a -f makefile

these tools did build --

addpm.exe
ddeclient.exe
runemacs.exe


cmdproxy.obj did fail with the missing externs --


I did find if I modified the makefile and made USE_CRT_DLL a comment,
then the make used

libcmt.lib

and __pctype resolved

NOTE: there were issues with etags.c and ctags.c -- they need "include
<stddef.h> in them

But there were other errors -- I can reproduce it if you like --

also, in the code segment in the makefile


!ifdef USE_CRT_DLL
libc            = msvcrt$(D).lib
EMACS_EXTRA_C_FLAGS= -D_DLL -D_MT -DUSE_CRT_DLL=1
!else
libc            = libcmt$(D).lib
EMACS_EXTRA_C_FLAGS= -D_MT
!endif


I think you want "!if" -- this is false if the expression is 0, true
otherwise -- using
!ifdef is alway true since the item USE_CRT_DLL is defined no matter
what its value is

I have attached the console session run these commands / batch files

Thanks

Frank Esposito


On Mon, Nov 19, 2012 at 2:10 PM, Fabrice Popineau
<address@hidden> wrote:
>
>> > When trying to build v24.2  with visual c 7.1 the file  cmdproxy.c
>> > fails to link due to --
>
>
>  What is visual c 7.1 ? The  Microsoft Windows SDK 7.1 ?
>
> What do you get with :
>
> C:\Source\XEmTeX\emacs\emacsw32\nt>cl
> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for
> 80x86
> Copyright (C) Microsoft Corporation.  All rights reserved.
>
> cl : Command line error D8003 : missing source filename
>
> C:\Source\XEmTeX\emacs\emacsw32\nt>link
> Microsoft (R) Incremental Linker Version 10.00.40219.01
> Copyright (C) Microsoft Corporation.  All rights reserved.
>
>  usage: LINK [options] [files] address@hidden
>
>> >
>> > LINK : warning LNK4044: unrecognized option '/manifest'; ignored
>> > LINK : warning LNK4044: unrecognized option '/dynamicbase:no'; ignored
>
>
> Annoying that your linker does not grok these options. They are not that
> new.
>
>>
>> > cmdproxy.obj : error LNK2001: unresolved external symbol __pctype
>> > cmdproxy.obj : error LNK2001: unresolved external symbol ___mb_cur_max
>> > obj/i386/cmdproxy.exe : fatal error LNK1120: 2 unresolved externals
>> > NMAKE : fatal error U1077: 'link' : return code '0x460'
>> > Stop.
>
>
> Problem : msvcrt is missing. Check if  USE_CRT_DLL=1 .
>
> Send a full log of the commands emitted.
>
> Regards,
>
> Fabrice
>
>>
>> >
>> > What library do I need to resolve these links
>>
>> Fabrice, could you please help out here?  TIA.
>
>

Attachment: console.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]