You are not logged in.
Pages: 1
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 ![]()
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
I'm using emacs on competitions ... ![]()
Offline
Some possibilities are Anjuta and KDevelop, and Code::Blocks (which is in the AUR).
Offline
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
I use geany. It's lightweight, comfortable and fast. Only project management is very lacking.
Offline
+1 geany ![]()
A w e s o m e
r
c
h
Offline
I'm using geany for web programming ...
emacs for c++
fp for pascal![]()
Offline
Thanks alot guys!
geany looks alot like bloodshed so I'll use that ![]()
Offline
+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
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 statusThat 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
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
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
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 ![]()
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
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
geany is cool!!
How did you know? I love this song! ![]()
Offline
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 ![]()
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.lstOffline
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
I think you can get by with adding both -lalleg-4.2.2 -lalleg_unsharable
Offline
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 ![]()
By using:
allegro-config --libsI got the correct output ![]()
Which was:
-L/usr/lib -Wl,--export-dynamic -lalleg-4.2.2 -lalleg_unsharableI think you can get by with adding both -lalleg-4.2.2 -lalleg_unsharable
As you can see above you were correct ![]()
Thanks ![]()
Offline
Pages: 1