Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Ordering object files when linkng using Visual C++ 5.0.

Posted on 2003-03-16
Medium Priority
Last Modified: 2012-05-04
I am a newbie trying to use Visual C++. I am trying to order a set of object files so that a_1.obj is followed by all the other object files being linked. I also want to specify the last object file a_n.obj.  So the linked image should look like the following:
a1.obj, a2.obj, a3.obj, ... a_n-1.obj, a_n.obj.

If I were to use a Makefile, I could do the following:
link a_1.obj $(OBJ) a_n.obj, where OBJ=a2.obj ... a_n-1.obj

How do I specify that to the builder?

Question by:Cleo1520
1 Comment
LVL 48

Accepted Solution

AlexFM earned 300 total points
ID: 8149862
Why do you need this?
Anyway, try to remove all source file from the project and add them again to the project (selecting each time only one file) in the desired order.

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
Suggested Courses

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question