Panel użytkownika
Nazwa użytkownika:
Hasło:
Nie masz jeszcze konta?

[Visual C++ 2010 Express] fatal error LNK1123

Ostatnio zmodyfikowano 2013-08-21 07:18
Autor Wiadomość
przemko06
Temat założony przez niniejszego użytkownika
[Visual C++ 2010 Express] fatal error LNK1123
» 2013-08-20 19:16:47
Mam dziwny problem z programem. Otóż programowałem sobie na laptopie na tym samym programie tylko że tam był system windows vista. Jakiś czas temu kupiłem sobie komputer stacjonarny system Windows 7 64bit, zainstalowałem visual C++ 2010 i mam cały czas taki błąd, nawet przy zwykłym najgłupszym programie. Reinstalacja nie pomogła. Proszę o pomoc co mam zrobic? Czyżby nie działało na windows 7? Co jest nie tak?

1>------ Build started: Project: main, Configuration: Debug Win32 ------
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

P-90642
pekfos
» 2013-08-20 19:17:58
Frazy, które należy wpisać w wyszukiwarkę google:
P-90643
przemko06
Temat założony przez niniejszego użytkownika
» 2013-08-20 19:20:15
hmm jeżeli chodzi o to

Project Properties
   -> Configuration Properties
       -> Linker (General)
          -> Enable Incremental Linking -> "No (/INCREMENTAL:NO)"

to to już robiłem i jak tak dam to logi są następujace:


1>------ Build started: Project: main, Configuration: Debug Win32 ------
1>test.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
1>c:\users\przemek\documents\visual studio 2010\Projects\main\Debug\main.exe : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


chyba że chodzi o to...

If disabling incremental linking doesn't work for you, and turning off "Embed Manifest" doesn't work either, then search your path for multiple versions of CVTRES.exe.

By debugging with the /VERBOSE linker option I found the linker was writing that error message when it tried to invoke cvtres and it failed.

It turned out that I had two versions of this utility in my path. One at C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cvtres.exe and one at C:\Windows\Microsoft.NET\Framework\v4.0.30319\cvtres.exe. After VS2012 install, the VS2010 version of cvtres.exe will no longer work. If that's the first one in your path, and the linker decides it needs to convert a .res file to COFF object format, the link will fail with LNK1123.

(Really annoying that the error message has nothing to do with the actual problem, but that's not unusual for a Microsoft product.)

Just delete/rename the older version of the utility, or re-arrange your PATH variable, so that the version that works comes first.


Tylko że nie za bardzo rozumiem jak to zrobić.....
P-90645
domin568
» 2013-08-20 19:42:49
Myśle ze to nie jest Twoj problem bo przecież nie instalowales Visual Studio 2012 , i masz tylko jeden ten plik poszukaj czegoś innego to jest chyba ślepą uliczka :)
P-90649
przemko06
Temat założony przez niniejszego użytkownika
» 2013-08-20 19:57:41
właśnie że instalowałem :D Bo wcześniej też miałem inny error i sprawdzałem na wersji 2012 i tez byl ten error wiec wróciłem z powrotem i teraz właśnie to...
P-90650
przemko06
Temat założony przez niniejszego użytkownika
» 2013-08-20 21:38:20
chyba wszystko pousuwałem i zainstalowałem na nowo i chyba mnie zaraz szlak trafi!
kolejny error jakieś


1>------ Build started: Project: main, Configuration: Debug Win32 ------
1>  test.cpp
1>c:\users\przemek\documents\visual studio 2010\projects\main\main\test.cpp(1): fatal error C1083: Cannot open include file: 'iosteram': No such file or directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
P-90653
abdi
» 2013-08-21 01:00:10
iosteram
 A co to ? :P
P-90663
przemko06
Temat założony przez niniejszego użytkownika
» 2013-08-21 07:18:39
aha ok bez komentarza :D
No to jednak zostaje dalej ten pierwszy problem :/

Nie wiem jak to zrobiłem ale juz działa ;)
P-90665
« 1 »
  Strona 1 z 1