You are not logged in.

#1 2008-01-31 22:39:48

Izuil
Member
From: Sweden
Registered: 2006-10-07
Posts: 162

What program for dev-c++?

EDIT: Okey, updated with a new problem but you'll have to scroll down to see the post or press this link:
http://bbs.archlinux.org/viewtopic.php? … 49#p326149



Hi guys smile
I have a problem here...
In school we are learning to program in C++ now (in windoze) and we're using www.bloodshed.net
what I'm wondering is if there is something like that I can use in Linux?

Last edited by Izuil (2008-02-04 15:20:18)

Offline

#2 2008-01-31 22:49:12

mfolnovic
Member
From: Zagreb, Croatia
Registered: 2008-01-03
Posts: 104

Re: What program for dev-c++?

I'm using emacs on competitions ... smile

Offline

#3 2008-01-31 22:49:58

peart
Member
From: Kanuckistan
Registered: 2003-07-28
Posts: 510

Re: What program for dev-c++?

Some possibilities are Anjuta and KDevelop, and Code::Blocks (which is in the AUR).

Offline

#4 2008-02-01 07:24:44

torkjel
Member
Registered: 2007-11-12
Posts: 11

Re: What program for dev-c++?

There is also the CDT plugin for Eclipse, if you can stand the thought of installing a few hundred megs of java code :) It's quite heavy but has a bunch of nice features. Both CDT and Eclipse is in extra.

Emacs isn't bad either, and some people actually like vim... :)

Offline

#5 2008-02-01 07:51:04

wuischke
Member
From: Suisse Romande
Registered: 2007-01-06
Posts: 630

Re: What program for dev-c++?

I use geany. It's lightweight, comfortable and fast. Only project management is very lacking.

Offline

#6 2008-02-01 08:08:41

ramoneur
Member
Registered: 2007-06-04
Posts: 89

Re: What program for dev-c++?

+1 geany smile


A w e s o m e
r
c
h

Offline

#7 2008-02-01 09:24:21

mfolnovic
Member
From: Zagreb, Croatia
Registered: 2008-01-03
Posts: 104

Re: What program for dev-c++?

I'm using geany for web programming ...
emacs for c++
fp for pascal
big_smile

Offline

#8 2008-02-01 11:06:03

Izuil
Member
From: Sweden
Registered: 2006-10-07
Posts: 162

Re: What program for dev-c++?

Thanks alot guys! smile geany looks alot like bloodshed so I'll use that smile

Offline

#9 2008-02-01 14:54:09

Cilyan
Member
From: Toulouse (FR)
Registered: 2006-08-27
Posts: 90
Website

Re: What program for dev-c++?

+1 for geany too, for any kind of programming, associated with a good Makefile for large projects.

If you want some more advanced features, you can try Anjuta (GTK based). It's a good IDE I think, but I prefer much more a lightweight solution and doing things by hand. It is able to generate autoconf files and makefiles, but the Glade support when I tested was poor. Just give it a look !

Cilyan

Offline

#10 2008-02-04 15:18:26

Izuil
Member
From: Sweden
Registered: 2006-10-07
Posts: 162

Re: What program for dev-c++?

Got a new problem now guys...
How do I make geany to build my source file with a custom library?
I want it to build with the allegro library but I get this output:

/tmp/ccPKEEqo.o: In function `main':
Spel_borjan.cpp:(.text+0x1ae): undefined reference to `_install_allegro_version_check'
Compilation failed.
Spel_borjan.cpp:(.text+0x1b3): undefined reference to `install_keyboard'
Spel_borjan.cpp:(.text+0x1bf): undefined reference to `set_color_depth'
Spel_borjan.cpp:(.text+0x1eb): undefined reference to `set_gfx_mode'
Spel_borjan.cpp:(.text+0x1f0): undefined reference to `readkey'
collect2: ld returned 1 exit status

That should be the entire output.
As far as I understand geany doesn't have contact with the allegro lib when compiling..
Any tip for a fix?

Offline

#11 2008-02-04 17:18:30

Wilku
Member
Registered: 2007-07-04
Posts: 41

Re: What program for dev-c++?

I would recommend you using vim and g++. I can give you the vim configuration file so it would highlight the syntax. Well anyway, I am using that combo

Offline

#12 2008-02-04 18:18:29

wuischke
Member
From: Suisse Romande
Registered: 2007-01-06
Posts: 630

Re: What program for dev-c++?

Izuil: Go to "Build" -> "Set Includes and Arguments" and add something like -lallegro (however the library is called) to the build-line. I recommend using a Makefile for larger projects and replacing the Build command with make.

That said, project management with geany is really poor, but I mentioned that already.

Offline

#13 2008-02-06 17:50:49

Izuil
Member
From: Sweden
Registered: 2006-10-07
Posts: 162

Re: What program for dev-c++?

wuischke wrote:

Izuil: Go to "Build" -> "Set Includes and Arguments" and add something like -lallegro (however the library is called) to the build-line. I recommend using a Makefile for larger projects and replacing the Build command with make.

That said, project management with geany is really poor, but I mentioned that already.

Thanks a lot that seems to have cleared out some of the problems smile

Although I still get this output:

/usr/bin/ld: cannot find -l/usr/include/allegro.h
collect2: ld returned 1 exit status
Compilation failed.

I know that is the correct path for the library so I don't understand why it isn't working...

Offline

#14 2008-02-06 18:24:39

peart
Member
From: Kanuckistan
Registered: 2003-07-28
Posts: 510

Re: What program for dev-c++?

You are trying to link with a header file, when you should be linking with libs.  Look for allegro files in /usr/lib, not /usr/include.

Offline

#15 2008-02-06 18:32:45

solanoalves
Member
From: Curitiba Brazil
Registered: 2007-12-02
Posts: 54

Re: What program for dev-c++?

geany is cool!!


big_smile How did you know? I love this song! big_smile

Offline

#16 2008-02-06 20:24:47

Izuil
Member
From: Sweden
Registered: 2006-10-07
Posts: 162

Re: What program for dev-c++?

peart wrote:

You are trying to link with a header file, when you should be linking with libs.  Look for allegro files in /usr/lib, not /usr/include.

Okey, thanks smile
But I tried and I can't find anything to link with :S
This is the out put of: locate allegro : (only the /libs dir)

/usr/lib/allegro
/usr/lib/allegro/4.2.2
/usr/lib/allegro/4.2.2/alleg-alsadigi.so
/usr/lib/allegro/4.2.2/alleg-alsamidi.so
/usr/lib/allegro/4.2.2/alleg-dga2.so
/usr/lib/allegro/4.2.2/alleg-fbcon.so
/usr/lib/allegro/4.2.2/alleg-jackdigi.so
/usr/lib/allegro/4.2.2/alleg-vga.so
/usr/lib/allegro/4.2.2/modules.lst

Offline

#17 2008-02-06 21:01:08

peart
Member
From: Kanuckistan
Registered: 2003-07-28
Posts: 510

Re: What program for dev-c++?

Izuil,

I don't use Allegro, but I went digging and found what might be the answer to your questions.  Apparently, if you run 'allegro-config' on the command line, it will show you the compiler/linker flags you need.  You can just copy those into your Geany project settings.

See here: http://alleg.sourceforge.net/stabledocs … /unix.html

HTH

Offline

#18 2008-02-06 22:25:25

tesjo
Member
Registered: 2007-11-30
Posts: 164

Re: What program for dev-c++?

I think you can get by with adding both -lalleg-4.2.2 -lalleg_unsharable

Offline

#19 2008-02-07 12:18:59

Izuil
Member
From: Sweden
Registered: 2006-10-07
Posts: 162

Re: What program for dev-c++?

peart wrote:

Izuil,

I don't use Allegro, but I went digging and found what might be the answer to your questions.  Apparently, if you run 'allegro-config' on the command line, it will show you the compiler/linker flags you need.  You can just copy those into your Geany project settings.

See here: http://alleg.sourceforge.net/stabledocs … /unix.html

HTH

Thanks a lot smile
By using:

allegro-config  --libs

I got the correct output smile
Which was:

-L/usr/lib -Wl,--export-dynamic -lalleg-4.2.2 -lalleg_unsharable
tesjo wrote:

I think you can get by with adding both -lalleg-4.2.2 -lalleg_unsharable

As you can see above you were correct smile
Thanks smile

Offline

Board footer

Powered by FluxBB