Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to exclude some .CPP files from being linked in Visual Studio?

0 views
Skip to first unread message

smart

unread,
Jan 26, 2010, 11:58:56 AM1/26/10
to
Hello everyone:

I'm working with Visual Studio 2008, and I have multiple CPP files in
the project. I'd like to compile these files, but not to link them,
because they are all MATLAB interface functions with the same function
names. Linking these functions cause the linker to complain, which is
not a big problem. However, I still want to fix it. Is there any way
to tell the linker to avoid certain object files?

Thanks.

red floyd

unread,
Jan 26, 2010, 12:34:26 PM1/26/10
to

Wrong group. Questions about a specific toolset are better addressed
in
a forum dedicated to your platform. Please try a newsgroup with
"visual
studio" in it's name.

See FAQ 5.9 http://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.9

0 new messages