1

I'm trying to make a C shared library.

I'm a newbie in Matlab, so I follow these steps:

http://www.mathworks.com/support/solutions/en/data/1-UR7P0/index.html?solution=1-UR7P0

I've created the Matlab files as it's written in article, and did all the steps with guidance of article. When I build my solution, I get this error..

error LNK1104: cannot open file 'foolib.lib'

Note: My MATLAB version is 7.11.0.584(r2010b)

1 Answer 1

2

You should add the foolib.lib to the linker dependencies in Visual studio. Right-Click on project -> Configuration Properties -> Linker -> Input -> Additional Dependencies. Add full path to foolib.lib here, for example "C:\MyProject\MyLib\foolib.lib"

This is described as step 6 at your link:

6 - After specifying the library directories, select the Input category and type the following libraries in the Additional Dependencies field: mclmcrrt.lib foolib.lib"

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.