How to Static link system libs

G

Guest

Hello,
I have Visual C++ 2005 on XP-Pro. I try do do a "quick and dirty" program
to run on a Win2000 computer. The only system call is a "printf()". When I
try to run this program on the other computer, there is an error message
saying "this program can not be started on this computer".
I suppose, this is due to the missing system DLLs msvcr80.dll, msvcm80.dll
and msvcp80.dll.

How can I link the equivalent libs statically to my program?

I cannot find any switch. The older versions of Visual C++, had a checkbox
for this.

Thanks in advance....

Johannes Kehrer
 
R

realrobby

Hello,
I have Visual C++ 2005 on XP-Pro. I try do do a "quick and dirty" program
to run on a Win2000 computer. The only system call is a "printf()". When I
try to run this program on the other computer, there is an error message
saying "this program can not be started on this computer".
I suppose, this is due to the missing system DLLs msvcr80.dll, msvcm80.dll
and msvcp80.dll.

How can I link the equivalent libs statically to my program?

I cannot find any switch. The older versions of Visual C++, had a checkbox
for this.

Thanks in advance....

Johannes Kehrer

I think that you can do it by going to project properties > C/C++ >
Code Generation and selecting the /MT or /MTd option. Note that this
will (obviously) only statically link the MS runtime libraries and not
any other libraries that you are using.

Robby
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top