Take my word that this is related to CHDK.
I have a compiling problem that I require some expert advice on.
Internet browsing for solutions simply adds to the confusion.
To start at the end, I want to link a number of external libraries to a simple 'C' programme.
I use GrAnd's pre-built Windows environment.
The installation filepaths are :-
H:\CHDK\gcc\arm-elf
\etc
\bin\gmake.exe
\include
\share
\lib\gcc\arm-elf\3.4.6
In my PATH environment variable I just have the path to gmake.exe.
In bin,sh.exe is actually zsh.exe as renamed by GrAnd for some reason.
When I type gmake, Windows can find it and execute it.
How does gmake know the absolute or relative location of the include and lib directories ?
Do I have a 'MINGW installation' ?
In effect, am I in a Unix environment?
When studying gcc compiling, it states the default locations for headers amd libraries is usr\local\include, usr\local\lib,usr\include and usr\lib.
How does that relate to my file structure on Windows ?
It makes the gcc discussions of relative paths difficult to understand.
I have also found that gcc examples that place -I and -L folders before the .C files do not work, the compiler complains there are no 'c files.
I am trying to use the ffmpeg libraries.
I have put avcodec.h,avformat.h and avio.h in \include.
Because those headers have references to #include "libavutil/.." and #include "libavcodec/.." I have created folders '\include\libavcodec','\include\libavutil' and others.
I have also created \lib\libavc for the ten .dll.a library files.
Despite their extension, I assume they are the static libraries.
There are also nine similar files but with name ending .lib.
They all start with '!<arch>'.
Finally to the question .. how do I reference the include and library files using relative paths, I assume that I do not have to give the absolute path to every library file ?
Needless to say, the library functions always fail to be found with every option that I have tried.
David