• C

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

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?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.