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 8238667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:53:27+00:00 2026-06-07T19:53:27+00:00

I have a very annoying problem with Matlab. I have a custom C style

  • 0

I have a very annoying problem with Matlab. I have a custom C style DLL to talk to our hardware. It works fine on my PC and fine on my colleague’s PC. On a third PC it fails to load with :

Error using ==> loadlibrary at 365
Failed to preprocess the input file.
Output from preprocessor is:’cl’ is not recognized as an internal or external command,
operable program or batch file.

Obviously it can’t find the compiler. Yet running !mex -setup gets my the intercative bit to select the only compiler on the machine (VS2008) and checking with !set vs shows the paths as correct. Trying to add paths directly doesn’t seem to help either. As I very little idea about Matlab and an extensive trawl of the matlab forums and trying suggestions just doesn’t help. Anybody any clues?

  • 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-06-07T19:53:30+00:00Added an answer on June 7, 2026 at 7:53 pm

    I don’t do where you added the path directly, but try to add the path where cl.exe is into the:

    My Computer -> Properties -> Advanced -> Environment Variables -> System Variables -> PATH

    If you open a command prompt (Execute -> cmd.exe) and write “set PATH” (without the “) can you find the right path? What happens if you write cl.exe. Maybe you should execute vcvars32.bat from the right Visual Studio version (i.e. C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin )

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

Sidebar

Related Questions

I've recently started using GNU Screen but have run into a very annoying problem.
I have a very annoying problem and I'm trying to find the simplest solution
I've got a very annoying problem with my Zend studio. I have a zend
We've got this very annoying problem with Scriptaculous and Internet Explorer 7/8. We have
I have a very annoying problem with jQuery and the datepicker from jQuery-UI. Here
I have a very annoying problem with LINQ and MS SQL Server. Im currently
Hey there, i got this very annoying problem: I have a CheckBoxList getting items
I have a very annoying problem that I've been struggling with for a few
I have this very annoying problem I cannot figure out. This is the main
I have a very annoying problem with the unreliable encryption and decryption of string

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.