Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7177731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:46:30+00:00 2026-05-28T16:46:30+00:00

I am compiling several C++ sources using cl.exe (Visual Studio 2010 Express). The sources

  • 0

I am compiling several C++ sources using cl.exe (Visual Studio 2010 Express). The sources are compiling fine and it generates the respective obj files, but after the last line of “Generating code…” it throws the infamous LNK1104 error, but of the weirdest kind I have ever seen:

Generating Code...
LINK : fatal error LNK1104: cannot open file 'Color.exe'

Now, Color.exe does not exist, I do not want it to exist, I am not telling cl to create it, neither do I even tell it to link at all, I only want to compile. Color.obj happens to be the first output file of the compiler (alphabetical order), so I assume this problem is kinda linked to it.

The command line of my cl.exe invocation looks like follows (I trimmed the includes, they aren’t part of the problem):

cl /nologo /Ox /EHsc /I[...] "D:\Projects\Java\JSFML\src\cpp\Intercom\*.cpp" "D:\Projects\Java\JSFML\src\cpp\JNI\*.cpp" /FoD:\Projects\Java\JSFML\out\obj\

The working directory is the MS Visual Studio directory. I assume that it cannot “open” Color.exe because it cannot write in that directory. However, my question is: why would cl even want to create it? I’m not telling it to link?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T16:46:31+00:00Added an answer on May 28, 2026 at 4:46 pm

    The default of most (if not all) C/C++ compilers is to perform the linking step unless you explicitly tell them not to.

    If you take a look at this page which covers “cl.exe”, you’ll find an option, /c (compile only, no link) that will turn that behavior off for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After compiling a simple C++ project using Visual Studio 2008 on vista, everything runs
I'm compiling my own DLL comprised of several .o files. One of the .o
I have tried several times to install rails. Using RVM, then compiling the source
I have read several post on both matters but I haven't seen anyone comparing
Compiling a file that uses OpenGL with Visual C++, when I try to include
When compiling our project, we create several archives (static libraries), say liby.a and libz.a
I've just tried compiling an iOS project using the the LLVM 1.5 compiler (included
I know this question has been posed several times, but my goal is slightly
Looked at several post on stackoverflow as well as other sources (online + ANT
I'm having some trouble compiling/linking a set of classes, several of them dealing with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.