Wierd Problem-missing .lib files even after successful dll creation
hi all,
I am facing a wierd problem.
I have created a simple dll which compiled sucdcesfully.
But when i cheked for the lib files they were missing.
My files are as following.
//optest.h
#ifndef _OPTEST_H_
#define _OPTEST_H_
#include <iostream.h>
#include <stdio.h>
#include <windows.h>
extern "C" __declspec(dllexport) int add( int x , int y);
extern "C" __declspec(dllexport) int sub( int x , int y );
extern "C" __declspec(dllexport) int mul( int x , int y );
//extern "C" __declspec(dllexport) int div( int x , int y );
extern "C" __declspec(dllexport) void get( int x , int y );
#endif
//optest.cpp -source file for optest.h
#include "optest.h"
extern "C" __declspec(dllexport) int add( int x , int y );
extern "C" __declspec(dllexport) int sub( int x , int y );
extern "C" __declspec(dllexport) int mul( int x , int y );
extern "C" __declspec(dllexport) void get( int x , int y );
class oper
{
public:
int a,b;
void get(int x , int y );
int add( int x , int y );
int sub( int x , int y );
int mul( int x , int y );
};
void oper :: get( int x ,int y )
{
a = x;
b = y;
}
int oper::add( int x, int y )
{
return(x+y);
}
int oper::sub( int x , int y )
{
return(x-y);
}
int oper::mul( int x , int y )
{
return(x*y);
}
Can anyone suggest me a solution for this.
Both the .exp and .lib files are missing though the dll is compiling
successgully.
Thanks in advance,
Veenu.