Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / June 2004

Tip: Looking for answers? Try searching our database.

LNK1254 when porting from VC6 to VC.NET

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gilles Orazi dot orazi at varianinc dot com - 04 Jun 2004 10:52 GMT
Hi,

I am having troubles to port C++ code to .NET.
I want to write a set of managed wrapper classes to my old unmanaged code.

Everything compiles fine but I get a strange link error:

LINK : fatal error LNK1254: métadonnées du symbole
'??$find@Viterator@?$vector@Viterator@?$_Tree@V?$_Tmap_traits@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$shared_ptr@VContainer@dhpl@@@boost@@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$shared_ptr@VContainer@dhpl@@@boost@@@std@@@2@$0A@@std@@@std@@V?$allocator@Viterator@?$_Tree@V?$_Tmap_traits@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$shared_ptr@VContainer@dhpl@@@boost@@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$shared_ptr@VContainer@dhpl@@@boost@@@std@@@2@$0A@@std@@@std@@@3@@std@@V1?$_Tree@V?$_Tmap_traits@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$shared_ptr@VContainer@dhpl@@@boost@@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$shared_ptr@VContainer@dhpl@@@boost@@@std@@@2@$0A@@std@@@3@@std@@$$FYA?AViterator@?$vector@Viterator@?$_Tree@V?$_Tmap_traits@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$shared_ptr@VContainer@dhpl@@@boost@@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$shared_ptr@VContainer@dhpl@@@boost@@@std@@@2@$0A@@std@@@std@@V?$allocator@Viterator@?$_Tree@V?$_Tmap_traits@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$shared_ptr@VContainer@dhpl@@@boost@@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$shared_ptr@VContainer@dhpl@@@boost@@@std@@@2@$0A@@std@@@std@@@3@@0@V120@0ABV1?$_Tree@V?$_Tmap_traits@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$shared_ptr@VC
ontainer@dhpl@@@boost@@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$shared_ptr@VContainer@dhpl@@@boost@@@std@@@2@$0A@@std@@@0@@Z'
non cohérentes avec la table des symboles COFF

Wow ! What a symbol !!

Any hint ?

Thanks by advance.
Gilles.
Carl Daniel [VC++ MVP] - 04 Jun 2004 14:28 GMT
> Hi,
>
[quoted text clipped - 3 lines]
>
> Everything compiles fine but I get a strange link error:

Are you quite certain that you've recompiled _everything_ that you're trying
to link?  If there's even a single C++ module that uses STL, boost, MFC or
ATL that was compiled with VC6, it won't link successfully with the balance
of the modules compiled with VC7{.1}.

-cd
Gilles Orazi - 07 Jun 2004 14:45 GMT
>> Hi,
>>
[quoted text clipped - 10 lines]
> ATL that was compiled with VC6, it won't link successfully with the
> balance of the modules compiled with VC7{.1}.

Thanks a lot for your answer. Unfortunately, I recompiled all my .lib file
and get the same error. :-(

In the meantime I found the KB822329 where it is recommended to compile non
clr file without the /clr option. By doing that in a makefile it works
fine. But I was not able to compile some specific files of my project
without the /clr option: I tried change the "C++/General/compile as managed
code" option of these file (the name of this option may not be correct
because I have a french language version). I then get a compilation error
that says I should set the /clr switch.

Any hint ?

Thanks by advance
Gilles.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.