Thanks! Sure enough that was it. I knew it as something stupid that I really ought to know. :P<br><br><div class="gmail_quote">On Wed, Nov 7, 2012 at 8:58 PM, Stephen F. Booth <span dir="ltr"><<a href="mailto:me@sbooth.org" target="_blank">me@sbooth.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <div><div>To get rid of the warnings you'll need to remove the semicolons following your #includes.</div><div><br></div><div>The "lib" prefix is implied in the -l option, so the flag should just be -ltag instead of -lllibtag.</div>
<div><br></div><div>Stephen</div></div><div><div class="h5">
                 
                <p style="color:#a0a0a8">On Wednesday, November 7, 2012 at 7:54 PM, Jeremy Gregorio wrote:</p>
                </div></div><blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px">
                    <span><div><div><div class="h5"><div>Forgive me for asking this, but I'm banging my head against the wall because IDEs have spoiled me,<br><br>I want to do hello world in taglib. I've done it before years ago, but can't remember how.<br>
<br>I built taglib staticly in Linux using:<br>
<br>cmake -DENABLE_STATIC=ON  -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_RELEASE_TYPE=Release .<br>make<br>make install<br><br>It worked like a charm and I now have <br><br>/usr/local/lib/libtag.a<br>and the whole<br>/usr/local/include/taglib/ folder with the headers<br>

<br>Here's my little cpp<br><br>// my first program in C++<br><br>#include <iostream><br>using namespace std;<br>#include "tag.h";<br>#include "fileref.h";<br><br>int main ()<br>{<br><br> TagLib::FileRef f("Latex Solar Beef.mp3");<br>

 TagLib::String artist = f.tag()->artist(); // artist == "Frank Zappa"<br><br> f.tag()->setAlbum("Fillmore East");<br> f.save();<br><br> TagLib::FileRef g("Free City Rhymes.ogg");<br> TagLib::String album = g.tag()->album(); // album == "NYC Ghosts & Flowers"<br>

<br> g.tag()->setTrack(1);<br> g.save();<br><br>  return 0;<br>}//END MAIN<br><br>And I try to build with:<br><br>g++ -o hello2 hello.cpp -I/usr/local/include/taglib/  -L/usr/local/lib/ -llibtag<br><br>But I get back:<br>

<br>hello.cpp:5:17: warning: extra tokens at end of #include directive [enabled by default]<br>hello.cpp:6:21: warning: extra tokens at end of #include directive [enabled by default]<br>/usr/bin/ld: cannot find -llibtag<br>

collect2: ld returned 1 exit status<br><br>I know I'm just doing something dumb, but for the life of my I can't remember what. :P<br clear="all"><br>-- <br>Jeremy D Gregorio<br>Sr Consultant<br>#: <a href="tel:520-275-5352" value="+15202755352" target="_blank">520-275-5352</a><br>

fax: <a href="tel:520-747-2540" value="+15207472540" target="_blank">520-747-2540</a><br><br><a href="http://www.linkedin.com/pub/jeremy-gregorio/36/302/429" target="_blank"><img src=""></a><br><a href="http://www.glimmersoft.com/socialmedia/btn_viewmy_160x33.png" target="_blank"></a><br>


</div></div></div><div><div>_______________________________________________</div><div>taglib-devel mailing list</div><div><a href="mailto:taglib-devel@kde.org" target="_blank">taglib-devel@kde.org</a></div><div><a href="https://mail.kde.org/mailman/listinfo/taglib-devel" target="_blank">https://mail.kde.org/mailman/listinfo/taglib-devel</a></div>
</div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>
            <br>_______________________________________________<br>
taglib-devel mailing list<br>
<a href="mailto:taglib-devel@kde.org">taglib-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/taglib-devel" target="_blank">https://mail.kde.org/mailman/listinfo/taglib-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Jeremy D Gregorio<br>Sr Consultant<br>#: 520-275-5352<br>fax: 520-747-2540<br><br><a href="http://www.linkedin.com/pub/jeremy-gregorio/36/302/429" target="_blank"><img src="http://www.glimmersoft.com/socialmedia/btn_viewmy_160x33.png"></a><br>
<a href="http://www.glimmersoft.com/socialmedia/btn_viewmy_160x33.png" target="_blank"></a><br>