windows - Compiling a C code into a single executable compatible with both WinXP and Win7 -
i trying compile c program executable compatible both winxp , win7. since code needs compact possible, i'd use dlls. visual studio express 2012 update4 can generate code winxp, latter won't work on win7. when running on win7, following error: "the program cant run because msvcr110.dll missing..."
can me issue? in advance!
the program compile under vs2012 should work on both xp , windows 7. problem windows 7 machine not have required runtime deployed on it. prerequisite of linking against dynamic runtime. must deploy runtime machine runs program.
once deploy runtime, instance using vs2012 redistributable package, should find code run. note need on machines, not windows 7 machines. fact have not had on windows xp machine means other application has deployed runtime there. quite xp machine development machine , runtime deployed when installed visual studio.
as alternative installing redistributable package can place runtime dll, msvcr110.dll, in directory executable file lives. recommend have read of documentation on subject: redistributing visual c++ files.
note if want make deployment small , simple possible, linking against dynamic runtime not achieve that. find static linking leads smallest , simplest deployment. not recommending that. various reasons, dynamic runtime preferred.
Comments
Post a Comment