Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Cannot create .lib file in Eclipse CDT(Eclipse only build .dll file and don't provide .lib file)
Cannot create .lib file in Eclipse CDT [message #1776612] Sat, 18 November 2017 12:45 Go to next message
Sun Maung Oo is currently offline Sun Maung OoFriend
Messages: 1
Registered: November 2017
Junior Member
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.


#ifndef TESTMATH_H_
#define TESTMATH_H_

namespace Library{

class TestMath {
	virtual ~TestMath();

	int plus(int a,int b);


#endif /* TESTMATH_H_ */


#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;

Re: Cannot create .lib file in Eclipse CDT [message #1777047 is a reply to message #1776612] Fri, 24 November 2017 05:13 Go to previous message
David VavraFriend
Messages: 772
Registered: October 2012
Senior Member
These are the steps for building and using DLLs with cygwin.

[Updated on: Fri, 24 November 2017 10:53]

Report message to a moderator

Previous Topic:Running code with no debugging capability
Next Topic:Installing Eclipse with LLVM/Clang toolchain?
Goto Forum:

Current Time: Wed Sep 19 03:37:48 GMT 2018

Powered by FUDForum. Page generated in 0.01606 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top