Error: External C/C++ compilation failed.

192 views
Skip to first unread message

Сергей Владимирович

unread,
Apr 6, 2018, 6:05:03 AM4/6/18
to Eiffel Users
I'm studying the examples.

C:\examples\store\convert


External Compilation

eparents.c
‘ª®¯¨à®¢ ­® ä ©«®¢: 1.



E1\eparents.obj E1\einit.obj E1\ececil.obj E1\evisib.obj E1\enames.obj
E1\eskelet.obj E1\eplug.obj E1\ecall.obj E1\efrozen.obj E1\epattern.obj
E1\eoption.obj C3\Cobj3.lib C2\Cobj2.lib C1\Cobj1.lib
LINK : fatal error LNK1181: íå óäàåòñÿ îòêðûòü âõîäíîé ôàéë "c:\users\sergeysh\documents\eiffel user files\18.01\precomp\spec\win64\EIFGENs\base\W_code\msc_vc140\precomp.lib"
NMAKE : fatal error U1077: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\bin\HostX64\x64\link.EXE" : âîçâðàùåííûé êîä "0x49d"
Stop.

How???



C:\examples\store\decimal
Preparing C compilation using Microsoft Visual Studio 2017 VC++ (15.0)...
"eparents.obj" íå íóæäàåòñÿ â îáíîâëåíèè -- what could be the problem???????
"einit.obj" íå íóæäàåòñÿ â îáíîâëåíèè
"ececil.obj" íå íóæäàåòñÿ â îáíîâëåíèè
"evisib.obj" íå íóæäàåòñÿ â îáíîâëåíèè
"enames.obj" íå íóæäàåòñÿ â îáíîâëåíèè
"eskelet.obj" íå íóæäàåòñÿ â îáíîâëåíèè
"eplug.obj" íå íóæäàåòñÿ â îáíîâëåíèè
"ecall.obj" íå íóæäàåòñÿ â îáíîâëåíèè
"efrozen.obj" íå íóæäàåòñÿ â îáíîâëåíèè
"epattern.obj" íå íóæäàåòñÿ â îáíîâëåíèè
"eoption.obj" íå íóæäàåòñÿ â îáíîâëåíèè
‘ª®¯¨à®¢ ­® ä ©«®¢: 1.
"emain.obj" íå íóæäàåòñÿ â îáíîâëåíèè
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Copyright (C) Microsoft Corporation. All rights reserved.

Microsoft (R) Incremental Linker Version 14.13.26129.0
Copyright (C) Microsoft Corporation. All rights reserved.

-STACK:5000000 -NODEFAULTLIB:libc -STACK:5000000 -NODEFAULTLIB:libc -SUBSYSTEM:CONSOLE -OUT:decimal.exe
e1\emain.obj
"C:\Program Files\Eiffel Software\EiffelStudio 18.01 GPL\studio\spec\win64\lib\msc_vc140\mtwkbench.lib" "odbc32.lib" "C:\Program Files\Eiffel Software\EiffelStudio 18.01 GPL\library\store\spec\msc_vc140\win64\lib\odbc_store.lib"
USER32.lib WS2_32.lib ADVAPI32.lib GDI32.lib SHELL32.lib MSIMG32.lib COMDLG32.lib UUID.lib OLE32.lib OLEAUT32.lib COMCTL32.lib MPR.LIB SHLWAPI.LIB WINSPOOL.LIB
decimal.res
E1\eparents.obj E1\einit.obj E1\ececil.obj E1\evisib.obj E1\enames.obj
E1\eskelet.obj E1\eplug.obj E1\ecall.obj E1\efrozen.obj E1\epattern.obj
E1\eoption.obj C28\Cobj28.lib C27\Cobj27.lib C26\Cobj26.lib C25\Cobj25.lib
C24\Cobj24.lib C23\Cobj23.lib C22\Cobj22.lib C21\Cobj21.lib C20\Cobj20.lib
C19\Cobj19.lib C18\Cobj18.lib C17\Cobj17.lib C16\Cobj16.lib C15\Cobj15.lib
C14\Cobj14.lib C13\Cobj13.lib C12\Cobj12.lib C11\Cobj11.lib C10\Cobj10.lib
C9\Cobj9.lib C8\Cobj8.lib C7\Cobj7.lib C6\Cobj6.lib C5\Cobj5.lib
C4\Cobj4.lib C3\Cobj3.lib C2\Cobj2.lib C1\Cobj1.lib
C compilation completed


Thanks

Alexander Kogtenkov

unread,
Apr 6, 2018, 7:05:39 AM4/6/18
to eiffel...@googlegroups.com
The difference between the two examples is that "convert" uses a precompile and "decimal" does not. When "convert" was compiled for the first time, the compiler asked to run precompilation. It looks like the precompilation did not finish successfully. The following solutions are possible:

1. Make sure the precompilation finishes without an issue. For that you can remove the directory "c:\users\sergeysh\documents\eiffel user files\18.01\precomp\spec\win64\EIFGENs\base" and run fresh compilation for "convert". When the compiler asks to do the precompilation, select "yes" and wait until everything is compiled (e.g., do not press the button "close" of the precompilation dialog). (If this does not help, we can dig further to see what went wrong.)

2. Remove the precompile from the project. You can use the project settings dialog, navigate to the precompile (under Target | Groups), remove it, and save the changes. After that you need recompile the example from scratch.

Alexander Kogtenkov


Пятница, 6 апреля 2018, 13:05 +03:00 от Сергей Владимирович <sch...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages