Trying to use eclipse.

Started by
2 comments, last by daviangel 12 years, 3 months ago
Created an empty c++ project. Added a cpp file. Then I typed the following code:



int main()
{

return 0;
}


When I build it I get:

LINK : fatal error LNK1561: entry point must be defined[/quote]

That's when I use the Microsoft Visual C++ toolchain but when I use the GCC tool chain I get this error:




Cannot run program "make": Launching failed
Error: Program "make" is not found in PATH[/quote]
Advertisement
Hi

From your another post about cross platform data type, I think you are focusing on cross platform C++ development.

Not to answer your this question, I would share my some experience on cross platform development.

1, Eclipse + CDT was a pain to me. AFAIR, I tried and gave it up immediately.
2, There is lacking of elegant cross platform IDEs. Code::blocks maybe good, but still painful to debug.
3, So, I would recommend, use a cross platform building system, which can generate project file for each IDEs.

Currently I'm using CMake. It works quite well with VC, MingW, Mac, Linux, and it can generate projects for VC, C::B, and XCode.
When I need to debug, I use CMake to generate project for VC and I use VC 2008 Express (Free!) to debug.
If I need to debug on Linux, just generate another project for C::B.
That's all, easy and elegant.

Just my 2 cents and very personal experience, hope it will help you.

https://www.kbasm.com -- My personal website

https://github.com/wqking/eventpp  eventpp -- C++ library for event dispatcher and callback list

https://github.com/cpgf/cpgf  cpgf library -- free C++ open source library for reflection, serialization, script binding, callbacks, and meta data for OpenGL Box2D, SFML and Irrlicht.


Hi

From your another post about cross platform data type, I think you are focusing on cross platform C++ development.

Not to answer your this question, I would share my some experience on cross platform development.

1, Eclipse + CDT was a pain to me. AFAIR, I tried and gave it up immediately.
2, There is lacking of elegant cross platform IDEs. Code::blocks maybe good, but still painful to debug.
3, So, I would recommend, use a cross platform building system, which can generate project file for each IDEs.

Currently I'm using CMake. It works quite well with VC, MingW, Mac, Linux, and it can generate projects for VC, C::B, and XCode.
When I need to debug, I use CMake to generate project for VC and I use VC 2008 Express (Free!) to debug.
If I need to debug on Linux, just generate another project for C::B.
That's all, easy and elegant.

Just my 2 cents and very personal experience, hope it will help you.


Yes that is what I'm trying to do and I'm actually already using cmake.
Which version of Elipse are you trying to use?
As you know there is a billion versions and using the right version is the first problem laugh.png
Anyways, this might help.
Migrate Visual Studio C and C++ projects to Eclipse CDT
[size="2"]Don't talk about writing games, don't write design docs, don't spend your time on web boards. Sit in your house write 20 games when you complete them you will either want to do it the rest of your life or not * Andre Lamothe

This topic is closed to new replies.

Advertisement