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

[ace-users] MPC: How to create static library project?

112 views
Skip to first unread message

Dmytro Ovdiienko

unread,
May 22, 2009, 4:06:50 AM5/22/09
to ace-...@list.isis.vanderbilt.edu
Hello All,

I'm not sure I'm writing to the correct email list. I'm sorry but I cannot find more appropriate email group for my question.

The question is how to generate static library project using MPC (Make project creator). I have following MPC file:

project {
    staticname = utils

    Source_Files {
        *.cpp
    }
}

To create project file I use following command:

mpc.pl -type vc9


MPC successfully processes my file but it creates DLL project but not LIB project.

What is wrong?


Thanks.

Dima

Chad Elliott

unread,
May 23, 2009, 11:54:59 AM5/23/09
to Dmytro Ovdiienko, ace-...@list.isis.vanderbilt.edu
Hi Dima,

There are two ways to force MPC to create a static library project:

1) Set 'sharedname' to empty in your project.

project {
sharedname =
staticname = utils
}

2) Use the -static option on the MPC command line. This is not desirable if you
plan on mixing shared and static projects within a workspace.


HTH,
Chad

>
>
> Thanks.
>
> Dima
>


0 new messages