?
Solved

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

Posted on 2003-03-16
1
Medium Priority
?
275 Views
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?

Thanks.
0
Comment
Question by:Cleo1520
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 48

Accepted Solution

by:
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.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
Suggested Courses

777 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