CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 12 of 12
  1. #1
    Join Date
    Jun 2010
    Posts
    10

    Unhappy A "LINK : fatal error LNK1255" Problem.

    I am using Visual Studio 2005 C++ environment to work with a Windows Form Project.
    I am working on a simple mini-game using game objects (game field, monsters, etc.) detailed in some classes which are collected in a library file. This library file also uses a DirectX object to allow multiple sounds to be played at the same time.

    The Project can be built successfully. When I start the game using "Start without debugging" after the building process is completed, it works everything working as planned. Same with "Start with debugging". Perfect. The following is the log.


    1>------ Rebuild All started: Project: Project Shooting Graphics, Configuration: Debug Win32 ------
    1>Deleting intermediate and output files for project 'Project Shooting Graphics', configuration 'Debug|Win32'
    1>Compiling...
    1>stdafx.cpp
    1>Compiling...
    1>StartMenu.cpp
    1>LoginSelectConditions_Check.cpp
    1>StartMenu_Exit.cpp
    1>StageIntroduction.cpp
    1>Rank.cpp
    1>Project Shooting Graphics.cpp
    1>Opening.cpp
    1>MonsterIntroduction.cpp
    1>LoginSelectConditions.cpp
    1>LoginPage.cpp
    1>Ending.cpp
    1>AssemblyInfo.cpp
    1>Generating Code...
    1>Compiling managed resources...
    1>Read in 0 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\StartMenu_Exit.resx"
    1>Writing resource file... Done.
    1>Read in 0 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\StartMenu.resx"
    1>Writing resource file... Done.
    1>Read in 0 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\StageIntroduction.resx"
    1>Writing resource file... Done.
    1>Read in 3 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\Rank.resx"
    1>Writing resource file... Done.
    1>Read in 0 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\Opening.resx"
    1>Writing resource file... Done.
    1>Read in 2 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\MonsterIntroduction.resx"
    1>Writing resource file... Done.
    1>Read in 0 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\LoginSelectConditions_Check.resx"
    1>Writing resource file... Done.
    1>Read in 0 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\LoginSelectConditions.resx"
    1>Writing resource file... Done.
    1>Read in 0 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\LoginPage.resx"
    1>Writing resource file... Done.
    1>Read in 0 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\Form1.resx"
    1>Writing resource file... Done.
    1>Read in 0 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\Ending.resx"
    1>Writing resource file... Done.
    1>Compiling resources...
    1>Linking...
    1>Project_Shooting_Core_Library.lib(ShootingCore.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\Project_Shooting_Core_Library.lib' or at 'c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\debug\vc80.pdb'; linking object as if no debug info
    1>Embedding manifest...
    1>Build log was saved at "file://c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\Debug\BuildLog.htm"
    1>Project Shooting Graphics - 0 error(s), 1 warning(s)
    ========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========




    Now I want to make a "Release" version so that my friends without VS2005 can also play the game files. The game files can also be downsized. (If I send them with all the whole project files, it would be very clumsy). I use the lower row of the 2 rows in the "Build->Batch Build". It shows "Release|Win32" in the column "Solution Config". I then click Build.

    Then, I see such things in the building log:

    ------ Rebuild All started: Project: Project Shooting Graphics, Configuration: Release Win32 ------
    Deleting intermediate and output files for project 'Project Shooting Graphics', configuration 'Release|Win32'
    Compiling...
    stdafx.cpp
    Compiling...
    StartMenu.cpp
    LoginSelectConditions_Check.cpp
    StartMenu_Exit.cpp
    StageIntroduction.cpp
    Rank.cpp
    Project Shooting Graphics.cpp
    Opening.cpp
    MonsterIntroduction.cpp
    LoginSelectConditions.cpp
    LoginPage.cpp
    Ending.cpp
    AssemblyInfo.cpp
    Compiling managed resources...
    Read in 0 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\StartMenu_Exit.resx"
    Writing resource file... Done.
    Read in 0 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\StartMenu.resx"
    Writing resource file... Done.
    Read in 0 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\StageIntroduction.resx"
    Writing resource file... Done.
    Read in 3 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\Rank.resx"
    Writing resource file... Done.
    Read in 0 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\Opening.resx"
    Writing resource file... Done.
    Read in 2 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\MonsterIntroduction.resx"
    Writing resource file... Done.
    Read in 0 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\LoginSelectConditions_Check.resx"
    Writing resource file... Done.
    Read in 0 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\LoginSelectConditions.resx"
    Writing resource file... Done.
    Read in 0 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\LoginPage.resx"
    Writing resource file... Done.
    Read in 0 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\Form1.resx"
    Writing resource file... Done.
    Read in 0 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\Ending.resx"
    Writing resource file... Done.
    Compiling resources...
    Linking...
    Generating code
    Finished generating code
    MSVCURT.lib(mpiostream.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std.logic_error): (0x02000045)。
    MSVCURT.lib(mpiostream.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std.basic_string<char,std::char_traits<char>,std::allocator<char> >): (0x02000046)。
    MSVCURT.lib(mpiostream.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std.domain_error): (0x02000048)。
    MSVCURT.lib(mpiostream.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std.invalid_argument): (0x02000049)。
    MSVCURT.lib(mpiostream.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std.length_error): (0x0200004a)。
    MSVCURT.lib(mpiostream.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std.out_of_range): (0x0200004b)。
    MSVCURT.lib(mpiostream.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std.runtime_error): (0x0200004c)。
    MSVCURT.lib(mpiostream.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std.overflow_error): (0x0200004d)。
    MSVCURT.lib(mpiostream.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std.underflow_error): (0x0200004e)。
    MSVCURT.lib(mpiostream.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std.range_error): (0x0200004f)。
    MSVCURT.lib(mpiostream.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std._String_base): (0x02000050)。
    MSVCURT.lib(mpiostream.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std._Locinfo): (0x02000055)。
    MSVCURT.lib(mpiostream.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (_Locimp): (0x0200005a)。
    MSVCURT.lib(mpiostream.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (failure): (0x02000066)。
    MSVCURT.lib(mpiostream.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std._String_val<char,std::allocator<char> >): (0x02000085)。
    MSVCURT.lib(mpiostream.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std._Iterator_base): (0x020000a9)。
    MSVCURT.lib(fiopen.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std.logic_error): (0x0200006e)。
    MSVCURT.lib(fiopen.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std.basic_string<char,std::char_traits<char>,std::allocator<char> >): (0x0200006f)。
    MSVCURT.lib(fiopen.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std.domain_error): (0x02000071)。
    MSVCURT.lib(fiopen.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std.invalid_argument): (0x02000072)。
    MSVCURT.lib(fiopen.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std.length_error): (0x02000073)。
    MSVCURT.lib(fiopen.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std.out_of_range): (0x02000074)。
    MSVCURT.lib(fiopen.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std.runtime_error): (0x02000075)。
    MSVCURT.lib(fiopen.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std.overflow_error): (0x02000076)。
    MSVCURT.lib(fiopen.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std.underflow_error): (0x02000077)。
    MSVCURT.lib(fiopen.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std.range_error): (0x02000078)。
    MSVCURT.lib(fiopen.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std._String_base): (0x02000079)。
    MSVCURT.lib(fiopen.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std._Locinfo): (0x0200007e)。
    MSVCURT.lib(fiopen.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (_Locimp): (0x02000083)。
    MSVCURT.lib(fiopen.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (failure): (0x0200008e)。
    MSVCURT.lib(fiopen.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std._String_val<char,std::allocator<char> >): (0x020000af)。
    MSVCURT.lib(fiopen.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std._Iterator_base): (0x020000d6)。
    LINK : fatal error LNK1255: link failed because of metadata errors
    Build log was saved at "file://c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\Release\BuildLog.htm"
    Project Shooting Graphics - 33 error(s), 0 warning(s)
    ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

    The linking has failed.
    I have googled but I still can't figure out what has happened. Are my libraries too old?
    Any opinions are welcomed.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,395

  3. #3
    Join Date
    Jun 2010
    Posts
    10

    Re: A "LINK : fatal error LNK1255" Problem.


    Thanks for your reply! I have visited the link "http://blogs.msdn.com/vcblog/archive/2007/05/17/diagnosing-hidden-odr-violations-in-visual-c-and-fixing-lnk2022.aspx" in the second reply of the post provided by your second link. It is informative, but I have found NO errors in both the debug and release builds of the code provided by it..... the code can run successfully....

    This error is hard to be eliminated....

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,395

    Re: A "LINK : fatal error LNK1255" Problem.

    This error message sounds like you are mixing managed and unmanaged code or/and libraries in your release build.
    Try to compare debug and release options. Or, perhaps, just create a new VC++ (native!) project and compare release settings with it!
    Victor Nijegorodov

  5. #5
    Join Date
    Jun 2010
    Posts
    10

    Re: A "LINK : fatal error LNK1255" Problem.

    I now recompile my library. The old game objects library is compiled in the debug mode. Now I recompile it in the release mode. The error msg change to "error LNK2001: unresolved external symbol"

    Here is the log:

    ------ Rebuild All started: Project: Project Shooting Graphics, Configuration: Release Win32 ------
    Deleting intermediate and output files for project 'Project Shooting Graphics', configuration 'Release|Win32'
    Compiling...
    stdafx.cpp
    Compiling...
    StartMenu.cpp
    LoginSelectConditions_Check.cpp
    StartMenu_Exit.cpp
    StageIntroduction.cpp
    Rank.cpp
    Project Shooting Graphics.cpp
    Opening.cpp
    MonsterIntroduction.cpp
    LoginSelectConditions.cpp
    LoginPage.cpp
    Ending.cpp
    AssemblyInfo.cpp
    Compiling managed resources...
    Read in 0 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\StartMenu_Exit.resx"
    Writing resource file... Done.
    Read in 0 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\StartMenu.resx"
    Writing resource file... Done.
    Read in 0 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\StageIntroduction.resx"
    Writing resource file... Done.
    Read in 3 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\Rank.resx"
    Writing resource file... Done.
    Read in 0 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\Opening.resx"
    Writing resource file... Done.
    Read in 2 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\MonsterIntroduction.resx"
    Writing resource file... Done.
    Read in 0 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\LoginSelectConditions_Check.resx"
    Writing resource file... Done.
    Read in 0 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\LoginSelectConditions.resx"
    Writing resource file... Done.
    Read in 0 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\LoginPage.resx"
    Writing resource file... Done.
    Read in 0 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\Form1.resx"
    Writing resource file... Done.
    Read in 0 resources from "c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\Ending.resx"
    Writing resource file... Done.
    Compiling resources...
    Linking...
    Ending.obj : error LNK2001: unresolved external symbol "public: void __clrcall Sound::PlayTheSound(int,bool)" (?PlayTheSound@Sound@@$$FQAMXH_N@Z)
    Ending.obj : error LNK2001: unresolved external symbol "public: __clrcall Sound::~Sound(void)" (??1Sound@@$$FQAM@XZ)
    Ending.obj : error LNK2001: unresolved external symbol "public: bool __clrcall Sound::StopSound(int)" (?StopSound@Sound@@$$FQAM_NH@Z)
    Ending.obj : error LNK2001: unresolved external symbol "public: __clrcall Sound::Sound(struct HWND__ *)" (??0Sound@@$$FQAM@PAUHWND__@@@Z)
    Ending.obj : error LNK2001: unresolved external symbol "public: void __clrcall Sound::PrepareSound(int,char *)" (?PrepareSound@Sound@@$$FQAMXHPAD@Z)
    LoginPage.obj : error LNK2001: unresolved external symbol "public: __clrcall Shooting::~Shooting(void)" (??1Shooting@@$$FQAM@XZ)
    LoginPage.obj : error LNK2001: unresolved external symbol "public: __clrcall Record::~Record(void)" (??1Record@@$$FQAM@XZ)
    LoginPage.obj : error LNK2001: unresolved external symbol "public: __clrcall Record::Record(void)" (??0Record@@$$FQAM@XZ)
    LoginPage.obj : error LNK2001: unresolved external symbol "public: int __clrcall Shooting::MonsterInGrid(int)" (?MonsterInGrid@Shooting@@$$FQAMHH@Z)
    LoginPage.obj : error LNK2001: unresolved external symbol "public: void __clrcall Shooting::HoldGrid(int,int)" (?HoldGrid@Shooting@@$$FQAMXHH@Z)
    LoginPage.obj : error LNK2001: unresolved external symbol "public: bool __clrcall Shooting::MonsterAppear(int)" (?MonsterAppear@Shooting@@$$FQAM_NH@Z)
    LoginPage.obj : error LNK2001: unresolved external symbol "public: void __clrcall Record::TempGamerName(char *)" (?TempGamerName@Record@@$$FQAMXPAD@Z)
    LoginPage.obj : error LNK2001: unresolved external symbol "public: void __clrcall Shooting::HitEffect(int,bool)" (?HitEffect@Shooting@@$$FQAMXH_N@Z)
    LoginPage.obj : error LNK2001: unresolved external symbol "public: int __clrcall Shooting::GetRefreshPicNum(void)" (?GetRefreshPicNum@Shooting@@$$FQAMHXZ)
    LoginPage.obj : error LNK2001: unresolved external symbol "public: int __clrcall Record::CheckForOldRecord(char *)" (?CheckForOldRecord@Record@@$$FQAMHPAD@Z)
    LoginPage.obj : error LNK2001: unresolved external symbol "public: int __clrcall Shooting::GetRefreshPicGrid(void)" (?GetRefreshPicGrid@Shooting@@$$FQAMHXZ)
    LoginPage.obj : error LNK2001: unresolved external symbol "public: void __clrcall Record::ExtractOldGamerRecord(int)" (?ExtractOldGamerRecord@Record@@$$FQAMXH@Z)
    LoginPage.obj : error LNK2001: unresolved external symbol "public: double __clrcall Record::RoundDouble(double,int)" (?RoundDouble@Record@@$$FQAMNNH@Z)
    LoginPage.obj : error LNK2001: unresolved external symbol "public: void __clrcall Record::UpdateGamerRecord(char *,int,int,int,int,int,int,int)" (?UpdateGamerRecord@Record@@$$FQAMXPADHHHHHHH@Z)
    LoginPage.obj : error LNK2001: unresolved external symbol "public: int __clrcall Record::Add(char *,int,int,int,int,int,int)" (?Add@Record@@$$FQAMHPADHHHHHH@Z)
    LoginPage.obj : error LNK2001: unresolved external symbol "public: bool __clrcall Shooting::HitDetection(int)" (?HitDetection@Shooting@@$$FQAM_NH@Z)
    LoginPage.obj : error LNK2001: unresolved external symbol "public: int __clrcall Shooting::MissDetection(void)" (?MissDetection@Shooting@@$$FQAMHXZ)
    LoginPage.obj : error LNK2001: unresolved external symbol "public: __clrcall Shooting::Shooting(int)" (??0Shooting@@$$FQAM@H@Z)
    Opening.obj : error LNK2001: unresolved external symbol "public: int __clrcall Record::Read(int)" (?Read@Record@@$$FQAMHH@Z)
    C:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Release\Project Shooting Graphics.exe : fatal error LNK1120: 24 unresolved externals
    Build log was saved at "file://c:\Users\(Me)\Documents\Visual Studio 2005\Projects\Project Shooting Graphics Customer\Project Shooting Graphics\Release\BuildLog.htm"
    Project Shooting Graphics - 25 error(s), 0 warning(s)
    ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

  6. #6
    Join Date
    Jun 2010
    Posts
    10

    Re: A "LINK : fatal error LNK1255" Problem.

    P.S. The game object library is recompiled in the release mode without errors. I use this release version library to recompile the main game with the above log.

  7. #7
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,395

    Re: A "LINK : fatal error LNK1255" Problem.

    You seem to forget adding this "library" to the list of .lib/.obj files for the linking.
    Victor Nijegorodov

  8. #8
    Join Date
    Jun 2010
    Posts
    10

    Re: A "LINK : fatal error LNK1255" Problem.

    Quote Originally Posted by VictorN View Post
    You seem to forget adding this "library" to the list of .lib/.obj files for the linking.
    The newly recompiled library file has replaced the old debug mode library file in the folder of the solution.

  9. #9
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,395

    Re: A "LINK : fatal error LNK1255" Problem.

    Quote Originally Posted by Hiner View Post
    The newly recompiled library file has replaced the old debug mode library file in the folder of the solution.
    So, now it links OK. Doesn't it?
    Victor Nijegorodov

  10. #10
    Join Date
    Jun 2010
    Posts
    10

    Re: A "LINK : fatal error LNK1255" Problem.

    Quote Originally Posted by VictorN View Post
    So, now it links OK. Doesn't it?
    No.
    I mean I use Batch Build in the game library project to build the Release build of the library file. This is OK, and then I put the Release version of the lib file into the main game project folder, replacing the old Debug version. Then I try to build the Release build of the main game project.

    And the above log is obtained.

  11. #11
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,395

    Re: A "LINK : fatal error LNK1255" Problem.

    Sorra, I cannot help you with the porblem in *batch* build.
    Why don't you want to build it from within IDE?
    Victor Nijegorodov

  12. #12
    Join Date
    Jun 2010
    Posts
    10

    Red face Re: A "LINK : fatal error LNK1255" Problem.

    Quote Originally Posted by VictorN View Post
    Sorra, I cannot help you with the porblem in *batch* build.
    Why don't you want to build it from within IDE?
    The problem is now solved. I check the project settings in both debug and release modes and I find some differences. I notice that the game lib project is without Pure MSLI Common Language Runtime support. I turn it on and rebuild the game lib and use it to rebuild the main game project, which is intriguingly with Pure MSLI in release mode. The building is OK! I get simple files in release mode and they work!

    Anyway, you inspired me. Thanks a lot!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured