Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 07-29-2006, 05:03 PM   #16 (permalink)
Anakashar
C++ Intermediate
 
Anakashar's Avatar
 
Join Date: Feb 2006
Posts: 15
Anakashar is on a distinguished road
not sure why my full code needs to be posted for this

anyway, the "ID3_Tag Tag;" part is listed in the documentation http://id3lib.sourceforge.net after making it part of my environment and including the #include <id3/tag.h> file.

if i don't use "ID3_Tag Tag;" in my code, and compile it with just an "#include <id3/tag.h>" and link the library, most of the time it compiles without any problems. Once I do include the "ID3_Tag Tag;" portion (with the last "Tag" being just the name of the variable for simplicity), the linker errors show up. If I do almost anything to it, as well, it comes up barking at me that there's a problem in the "id3lib_frame.h" file concerning the "id3/globals.h" file. The error explanation it gives? highlighting the line "#include <id3/globals.h>"

If I include ID3LIB_LINKOPTION 1, 2, or 3, it throws up the linker errors.

I know this probably shouldn't be this hard, but I am using DevCPP, with the MinGW compiler. No VS/VC/MS compiled thing will work with this, I've read. In this effort, I'm trying to compile the lib and dll myself, with as much success as trying to use the lib files.
Anakashar is offline   Reply With Quote
Old 07-30-2006, 03:07 AM   #17 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 681
DJMaze is on a distinguished road
id3/tag.h
Code:
class ID3_CPP_EXPORT ID3_Tag
{
If you did carefully read my post on the previous page then i said you CAN'T use classes between compilers when using static compile (.dll)
So compile the full source into your project.

This means your makefile should compile all .c files of the id3lib OR use my previous example which is an example in C and not C++.

Closed source or not, i think you should learn about compilers, c++ and namemangling to fully understand why classes in dll's are bad.
DJMaze is offline   Reply With Quote
Old 07-30-2006, 11:20 AM   #18 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 681
DJMaze is on a distinguished road
Quote:
Originally Posted by Anakashar
my full code would take about 30 seconds of scrolling if i posted it all. and it's closed-source.
Damned why didn't i read that.
Where did you get the nerve to ask help on a website like this?
Do we get any credit in your software for it?

Therefore i think websites like this should have a CC license that forces people to give credit so i don't have to answer questions for money making software.

Hereby i'm requesting the admins if they can delete my posts from this topic untill the CC is in place.

http://creativecommons.org/licenses/by-nc/2.5/
__________________

UT: Ultra-kill... God like!
DJMaze is offline   Reply With Quote
Old 10-15-2006, 04:10 AM   #19 (permalink)
thedp
Registered User
 
Join Date: Oct 2006
Posts: 9
thedp is on a distinguished road
DJMaze, relax...
Close Source doesn't always mean Commercial.
There are many Freeware applications that are closed source.

But I do agree with you, credits could be nice.
thedp is offline   Reply With Quote
Old 10-15-2006, 09:10 AM   #20 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 681
DJMaze is on a distinguished road
hehehe i'm relaxed, but not knowing the purpose of a closed source project does make you wonder if its commercial.

Secondly, i'm not the one that should provide an unit test for ID3Lib

P.S. As you can see my signature does have a CC now so that students and commercial authors can't just copy/paste my stuff without thinking. Use it as it should be: reference
__________________

UT: Ultra-kill... God like!
DJMaze is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for a good Image Loading/Writing Library in C teknomage1 Platform/API C++ 3 07-23-2006 08:41 PM
Joost library complete Java 1 07-21-2006 09:46 PM
J2ME Library call ballina Java 1 07-21-2004 07:38 AM
Installing and using CMUgraphics library. Valmont Standard C, C++ 12 03-29-2003 08:39 AM
String Library MacTool Standard C, C++ 23 03-15-2003 03:17 PM


All times are GMT -8. The time now is 06:34 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting