<br><br><div><span class="gmail_quote">2007/12/9, Enrico Tröger <<a href="mailto:enrico.troeger@uvena.de">enrico.troeger@uvena.de</a>>:</span>><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> Seems like you dont understand me.<br>Ok, after re-reading I think I got it: you want be able to change the<br>-o option which is appended by Geany to the compiler?</blockquote><div><br>Yes, but is not a big issue.   :D
<br>If the projectname is "geany" the executable should be "geany.exe", but if the file is called main.c, its output seems to be main.exe. In one computer can be lots of main.c. Not to mention code-backups. This will get into tons of 
main.exe ones for each project.<br>My idea is if the file is on the project path, then this file belong to the project, and the output name should be the project name by default. Always changeable.<br><br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
><br>> I see what you say.<br>> Any way, i have never get on the need to have a so uncommon coded<br>> file that i should exactly tell what is the encodding.<br>Just be happy about that ;-). The best way is to always use UTF-8 or
<br>UTF-16 for file encodings and everything will work fine.</blockquote><div><br>So, then, what is the reason to not convert all of this encodings to UTF-8 automatically? or asking to the user.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
><br>> I tried to compile a single file gtked hello world to test geany as a<br>> build environment for gtk, and it fails. Why? becouse i have to put<br>> manually each include path on the gcc line, which are all already on
<br>> the INCLUDES path on windows.<br>Sure. But I still think this is not a problem of Geany. GTK has a bunch<br>of files which need to be included and the same for libraries to link<br>against. pkg-config exists and it also works for Windows.
<br>gcc -o testapp testapp.c `pkg-config --cflags --libs gtk+-2.0`<br>(ok, I'm not sure whether the backticks work on Windows)</blockquote><div><br>Nop, doesn't work. Only on MSYS. But having MSYS just for running backticks. Will kill the light behavior of geany.
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">> The process should be:<br>> Read the INCLUDES environ.<br>> Split with ";" (windows separator).
<br>> Append -I to each path.<br>> Join the list of paths.<br>> Replace %I for the join list of paths.<br>> The same for libs.<br>This could be done but is INCLUDES a common used environment variable<br>or is it just set by the GTK installer? How is the one for the libs
<br>called?<br>And there might be another problem: splitting the list and building a<br>command line for gcc with each entry might fail because there a limits<br>for the length of a command line. Maybe this doesn't matter because the
<br>limits are high enough.<br><br>Patches are welcome. Anyway, IMO a better way could be to write a<br>Makefile generator plugin or something like this.</blockquote><div><br>The environ is "INCLUDE"  and the libs environ is "LIB", there is also "GTK_BASEPATH".
<br>Is used by GTK and other tools/libs for windows, like wxWindows.<br><br>But with these way, geany doesn't need to have an includes-dialog.<br>I'm not sure about libs.<br>Can they be explicitly declared on the source code?
<br>If so, then geany can just say how with an example in a messagebox.<br><br></div></div><br>Regards.<br><br>