You are here:

C++/Is it possible to compile 32 bit applications in 64 bit environment..


I have an application which was running fine in 32 bit Windows 2003 64 bit OS, Visual studio 2005..
 If I change the Compiler environment to 64 bit ( Start --> All programs --> Visual Studio 2005 --> Visual Studio Tools --> Visual Studio 2005 x64 Win64 Command prompt)and compile my appliaction then i am getting Unresolved external symbols...  

     But same program is compiling properly with 32 bit environment ( Start --> All programs --> Visual Studio 2005 --> Visual Studio Tools --> Visual Studio 2005 Command Prompt ). Do we need to do any specific settings to make it compile..

 I am getting following error
"sample.obj : error LNK2019: unresolved external symbol"

  Thanks in advance ..:-)

Hello Malika, thank you for the question.

Your application could get a link error for any number or reasons. The one I would think to be the cause of your problem would be that any libraries you are linking to also have to be the 64 bit versions, and not the default 32 bit versions. Can you verify that you are linking to the correct libraries?


All Answers

Answers by Expert:

Ask Experts




I can answer questions about the C++ language, object oriented design and architecture. I am knowledgable in a lot of the math that goes into programming, and am certified by I also know a good deal about graphics via OpenGL, and GUIs.


I have completed numerous games and demos created with the C++ programming language. Currently employed as a software engineer in the modeling and simulation field. I have about 7 years experience.

©2017 All rights reserved.