Re: [flac-dev] Beginner's question

2013-02-08 Thread Ralph Giles
On 13-02-08 11:31 AM, Johnny Rosenberg wrote:

> I'm not very familiar with creating projects with dedicated IDEs, so
> far I only use a simple text editor and I want to keep it that way for
> a while, if possible.

If you've installed libflac-dev you should be able to compile the
example code against the system library. What's missing from that
directory as the build files, which you probably don't want to use
because they depend on building the flac library itself.

>From the command line, try something like:

cc -g -o example main.c -lFLAC -lm

Which will compile a debug version of main.c, link it to the system
libflac and libm, and create an executable called 'example'.

Good luck with your programming efforts,
 -r

___
flac-dev mailing list
flac-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/flac-dev


[flac-dev] Beginner's question

2013-02-08 Thread Johnny Rosenberg
I have just found out about the libflac thing and I have searched a
bit for information about it. I found its API and two examples.
My operating system is Ubuntu 12.04 and I installed the libflac-dev
thing from the software center (which is equal to installing it with
”sudo apt-get install libflac-dev”.

Is there anything more that I need to install to be able to compile,
for instance, the example atthe following place?
https://git.xiph.org/?p=flac.git;a=tree;f=examples/c/decode/file;h=911aaf7d72530b8e0f4c8e60d12c1dcaea1fda22;hb=HEAD

Since I'm not a very good programmer I just want to compile an
existing example, then experiment with it a bit (add and remove stuff
to the example, just to learn and get ideas), but it seems like I need
more than the libflac-dev package and the c-file on the above
destination.

I'm not very familiar with creating projects with dedicated IDEs, so
far I only use a simple text editor and I want to keep it that way for
a while, if possible.

I found a similar thread by searching, but the answer was somewhat
confusing to me, sorry for being an idiot.


Thanks

Johnny Rosenberg
___
flac-dev mailing list
flac-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/flac-dev