I am using Eclipse CDT with Cygwin gcc version 6.4.0 on Windows.
I have choose the shared library project and when I try to build it , the Eclipse CDT only provide me with ".dll" file and does not provide me any ".lib" file.
I wanted the Eclipse CDT to build both ".dll" and ".lib" file and I cannot find any option to enable it.
I have search for the information online and can't seem to find any link telling me how to generate ".lib" file.
Could someone please advise file what step I have to take?
Thank you very much.
I have provide the source code I use to build a shared library.
//TestMath.h
#ifndef TESTMATH_H_
#define TESTMATH_H_
namespace Library{
class TestMath {
public:
TestMath();
virtual ~TestMath();
int plus(int a,int b);
};
}
#endif /* TESTMATH_H_ */
//TestMath.cpp
#include "TestMath.h"
Library::TestMath::TestMath() {
// TODO Auto-generated constructor stub
}
Library::TestMath::~TestMath() {
// TODO Auto-generated destructor stub
}
int Library::TestMath::plus(int a,int b){
return a+b;
}