![]() |
|
Dev-cpp, code completion |
Audric
Member #907
January 2001
|
Is it possible to configure Dev-cpp to suggest Allegro functions in code completion. (Code::Blocks does not work on this computer, but thanks for the suggestion) |
Indeterminatus
Member #737
November 2000
![]() |
Man, it's been a while since I last used Dev-Cpp, but there is the possibility, yes. I don't have it installed, so I cannot check; I remember, though, that one can configure the paths for the cached source -- which also enables those sources for code completion. Sorry, I cannot tell you more details. Hope this helps you anyway _______________________________ |
Timorg
Member #2,028
March 2002
|
In my experience, get the installer without mingw, and get the mingw installer of the sf project page (http://sourceforge.net/project/downloading.php?group_id=2435&filename=MinGW-5.1.3.exe) Install mingw to c:\dev-cpp or somewhere convenient, install allegro, and any other libs that you want code completion in. Then install dev-cpp into that directory, ignoring the directory already exists warning. As its installing it will ask if you want to create the cache, just say yes. Then you are all set. You can manually create the cache on a current install, but I find I miss directories usually. -Tim ____________________________________________________________________________________________ |
Audric
Member #907
January 2001
|
Thanks for the tips. Now this is very frustrating because: |
Indeterminatus
Member #737
November 2000
![]() |
The things you mentioned (among others) basically made me switch from Dev-Cpp to Eclipse/CDT. I know this doesn't help you much, but I'm afraid these things won't go away (and I didn't find a decent workaround), as Dev-Cpp is no longer actively worked on. _______________________________ |
Thomas Fjellstrom
Member #476
June 2000
![]() |
I recall that baf added support for allegro to generate a proper autocomplete setup for devcpp. Its one of the makefile options afaik. -- |
Audric
Member #907
January 2001
|
I grepped in the 4.3.10 makefiles, but didn't find anything related. But I solved it, woo-hoo [list ordered] echo #define ALLEGRO_H >> allegro2.h gcc -E -DALLEGRO_NO_COMPATIBILITY allegro.h | grep -v "^#" >> allegro2.h echo #endif >> allegro2.h rm -rf allegro [/list ordered] There, everything works:
Thanks all... I know it's nothing revolutionary, but I tried 5 IDEs before getting there, I'm glad it wasn't for nothing. (1) This ensures Dev-cpp scans the tweaked file when there is a #include <allegro.h>, but the actual compilation will use the original file tree from allegro build directory. |
|