visual c++ 2008: no .dll and .lib files generated

I am trying to create a .dll and .lib from a project so that I can link to it from a different project, but I am having trouble actually generating the dll and the lib. I tried with the very general example from msdn:

//header 
namespace MathFuncs
{
class MyMathFuncs
{
public:
    // Returns a + b
    static __declspec(dllexport) double Add(double a, double b);

    // Returns a - b
    static __declspec(dllexport) double Subtract(double a, double b);

    // Returns a * b
    static __declspec(dllexport) double Multiply(double a, double b);

    // Returns a / b
    // Throws DivideByZeroException if b is 0
    static __declspec(dllexport) double Divide(double a, double b);
};
}

//body #include "MathFuncs.h" #include

using namespace std;

namespace MathFuncs
{
double MyMathFuncs::Add(double a, double b)
{
    return a + b;
}

double MyMathFuncs::Subtract(double a, double b)
{
    return a - b;
}

double MyMathFuncs::Multiply(double a, double b)
{
    return a * b;
}

double MyMathFuncs::Divide(double a, double b)
{
    if (b == 0)
    {
        throw new invalid_argument("b cannot be zero!");
    }

    return a / b;
}

}

I've set the configuration type from properties to Dynamic Library (.dll). But when I build the project, the only output I get is: BuildLog.htm, MathFuncs.obj, mt.dep, MathFuncs.dll.intermediate.manifest, vc90.idb, vc90.pdb. I don't know what I am missing, can someone help me out? Thanks.

Answers


The dll was being outputted to a directory pointed by $OutDir/$ProjectName.dll the whole time..


Need Your Help

C++ porting VirtualFree in OS X

c++ osx memory memory-management virtual-memory

I'm trying to make a port of our memory management in which some allocators use virtual memory mechanism to reserve address space without (at the beginning) allocate any physical memory and later

Is it a good idea to inject a TestSettings parameter to a method to make it (Unit or integration) Testable?

oop unit-testing design-patterns tdd integration-testing

Is it a good practice to introduce a TestSettings class in order to provide flexible testing possibilities of a method that has many processes inside?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.