Creating a static library using the .mex command

5 vues (au cours des 30 derniers jours)
uli terlinden
uli terlinden le 5 Fév 2013
Hello, i wanted to ask if someone can tell me how to create a static library by using the mex-command (?)
Thanks in advance,
Uli

Réponse acceptée

José-Luis
José-Luis le 5 Fév 2013
Modifié(e) : José-Luis le 6 Fév 2013
That would depend on the compiler you use. Just compile some object files ( /c option for visual studio, -c for gcc). Then you could use your favorite utility ( ar in *nix systems, no idea for Windows) to create your static library, which is after all only a collection of object files.
This might help you understand how to set the compiler options.
  2 commentaires
uli terlinden
uli terlinden le 8 Fév 2013
Well, that means i have to pass the same arguments as by "making" the library by foot ?? I wondered if there is a "special" mex-option or a command, that will create a static library (no matter what compiler i use... just like "mex" itself, as it is so to say "compilerindependent"). I know how to get this done so far on *nix systems... so i think i have to find out how to do it with VS ... Thanks for the answer, it helped me a lot and motivates me find out more about VS.
Greetings,
Uli
José-Luis
José-Luis le 8 Fév 2013
I am not aware of such a function, sorry. Good luck in your job!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB Compiler dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by