Tweak3D.Net
Save?
Not Registered Yet? Go here.
Join The Cult Tweakers Image Gallery Donate Search Today's Posts Mark Forums Read

Welcome to Tweak3D

This is an open forum about tech stuff, games, and cars. Sign-up here to join the discussion.

Reply
 
LinkBack Thread Tools Display Modes
Old 11-11-2005, 11:38 AM I'll pay $10 for C++ compiling help. (large project)   permalink #1
Cartman's Avatar
Cartman
Senior Member
 
Jan 2005
Last Seen: 09-25-2006
Location: United States of American
Posts: 1,762 (#51)
Thanked 0x in 0 posts

If someone knows how to compile projects in C++ go to www.id3.org http://sourceforge.net/projects/id3lib/ and download the Library and Compile a driver program that says 'Hello Word' but also has #include "id3.h" to the driver file, even though you do not call any functions or use any classes which are declared by header file.

If you teach me how to compile the library and teach me how to link the library to the driver.cpp file I will pay you 10 dollars. Paypal or Cash which ever you prefer.

pm me, though i would probably respond to an e-mail faster
Andrew5544@yahoo.com

Note: This can be as simple as writing a text file with instructions. I can call you on the phone if you prefer that as well.

Remark: I’ve tried 2-3 websites which list instructions on how to perform such an action, however, I have been unsuccessful in competing them correctly.
Remark2: The software I'm currently using is: "Microsoft Visual C++ 6.0" The software that I use to do this is not limited to this.

Here is problem pretty much:
# ifndef ID3LIB_LINKOPTION
# pragma message("*** NOTICE *** (not a real error)")
# pragma message("* You should include a define in your project which reflect how you link the library")
# pragma message("* If you use id3lib.lib or libprj/id3lib.dsp (you link static) you should add")
# pragma message("* ID3LIB_LINKOPTION=1 to your preprocessor definitions of your project.")
# pragma message("* If you use id3lib.dll (you link dynamic) you should add ID3LIB_LINKOPTION=3")
# pragma message("* to your preprocessor definitions of your project.")
# pragma message("***")
# error read message above or win32.readme.first.txt




Below the line is the text file win32.readme.first.txt
----------------------------------------------------------


Compiling on win32:

So far, it has only been confirmed it compiles on visual C 6.0 (service pack 5),
but if you got it working on Borland or other compilers, drop me a mail, or better, add a patch
here: http://sourceforge.net/tracker/?grou...79&atid=300979 with the (e.g.) borland project files.

These are the directories you'll be needing:
id3lib/prj
id3lib/libprj
id3lib/id3com

The first one (id3lib/prj) creates the standard dll (no COM interface)
The Second one (id3lib/libprj) creates the .lib file for static linking.
And the third one (id3lib/id3com) creates a dll with com interface. A Visual basic demo using it is included.

Before you compile, you'll need to rename id3lib/config.h.win32 to id3lib/config.h

The third one is not too much tested, it was created outside this project but
it doesn't seem to be maintained anymore. I've included it as a service.
The original location is http://sourceforge.net/projects/id3com

And, last but not least, there is a delphi project in cvs
(http://cvs.sourceforge.net/cgi-bin/v...stable/delphi/)
which uses the allready compiled dll.
Also in there is a file called Id3lib.pas which has the interface to the dll
defined.

How to start:

A) ***Your project wants to link id3lib static, and has mfc linked static:
1) Rename config.h.win32 to config.h
2) include libprj/id3lib.dsp and zlib/prj/zlib.dsp to your workspace
3) make your project dependend on id3lib, and make id3lib dependend on zlib
4) Add /D ID3LIB_LINKOPTION=1 to your project options (settings, C/C++ tab)
5) Add the following include dirs to your program:
/I <path_to_id3lib>\\include /I <path_to_id3lib>\\include\\id3
6) (add your code which uses id3lib)
7) Try to compile, and see if you need any of the following:
(debug) /nodefaultlib:"msvcprtd" or(release) /nodefaultlib:"msvcprt"
(debug) /nodefaultlib:"MSVCRTD" or(release) /nodefaultlib:"MSVCRT"
(debug) /nodefaultlib:"libcd" or(release) /nodefaultlib:"libc"
different programs may require different 'nodefaultlib' 's, or none at all, these worked for me.
If none you try work, revert to C)


B)***Your project wants to link id3lib static, and has mfc linked dynamic or has no MFC:
1) Rename config.h.win32 to config.h
2) include libprj/id3lib.dsp and zlib/prj/zlib.dsp to your workspace
3) make your project dependend on id3lib, and make id3lib dependend on zlib
4) Add /D ID3LIB_LINKOPTION=1 to your project options (settings, C/C++ tab)
5) Add the following include dirs to your program:
/I <path_to_id3lib>\\include /I <path_to_id3lib>\\include\\id3
6) (add your code which uses id3lib)
7) Try to compile, and see if you need any of the following:
(debug) /nodefaultlib:"msvcprtd" or(release) /nodefaultlib:"msvcprt"
(debug) /nodefaultlib:"MSVCRTD" or(release) /nodefaultlib:"MSVCRT"
(debug) /nodefaultlib:"libcmtd" or(release) /nodefaultlib:"libcmt"
different programs may require different 'nodefaultlib' 's, or none at all, these worked for me.
If none you try work, revert to C)

C)***Your project wants to link id3lib dynamic: (instructions below for vc)
1) Rename config.h.win32 to config.h
2) include prj/id3lib.dsp and zlib/prj/zlib.dsp to your workspace (*note this is a different id3lib than above)
3) make your project dependend on id3lib, and make id3lib dependend on zlib
4) Add /D ID3LIB_LINKOPTION=3 to your project options (settings, C/C++ tab) (*note this is a different option than above)
5) Add the following include dirs to your program:
/I <path_to_id3lib>\\include /I <path_to_id3lib>\\include\\id3
6) (add your code which uses id3lib)
7) Compile.
dump id3lib.dll in your programs project dir.
9) distribute your program including id3lib.dll
(MS recommend you distribute it in your programs dir and not in system(32) to avoid version conficts)

Thijmen
thijmen@id3lib.org

"It is good that war is terrible, otherwise we would become over fond of it." - Robert E. Lee.

"You know, I used to think it was awful that life was so unfair. Then I thought, wouldn't it be much worse if life were fair, and all the terrible things that happen to us come because we actually deserve them? So, now I take great comfort in the general hostility and unfairness of the universe."
Cartman is offline   Reply With Quote
Yesterday, 05:30 PM   #2
 
 


Google is online (hide)  
Old 11-11-2005, 12:37 PM   permalink #2
Goofus Maximus's Avatar
Goofus Maximus
Too old to be this dumb!
 
Jan 2005
Last Seen: Today
Location: St. Louis area, but in Illinois
Posts: 2,391 (#35)
Thanked 3x in 3 posts

If I did anything at all, I'd do it on Dev-C++, since it's free, and it's what I have.

But I'm not going to do anything at all, for any homework but my own... :P

M7NCD Pro
Barton 3000+ @426fsb/2.23ghz
1 Gig Kingston HyperX PC3200 dual mode@426mhz
Samsung 40 Gig HD
Samsung DVD+/-RW
T.B. Santa Cruz
EVGA 7600 GS AGP
XP Home SP2
Goofus Maximus is online now   Reply With Quote
Old 11-11-2005, 12:38 PM   permalink #3
Cartman's Avatar
Cartman
Senior Member
 
Jan 2005
Last Seen: 09-25-2006
Location: United States of American
Posts: 1,762 (#51)
Thanked 0x in 0 posts

Haha i dont need help with homework... my homework is much too simple to challange me this much... i wish this was homework, i could look up the answer in my text book
Cartman is offline   Reply With Quote
Old 11-11-2005, 01:53 PM   permalink #4
Wedge_'s Avatar
Wedge_
Rogue One
 
Jan 2005
Last Seen: Today
Location: Scotland
Posts: 978 (#89)
Thanked 0x in 0 posts

I just went through and followed the instructions, specifically this bit:
Quote:
C)***Your project wants to link id3lib dynamic: (instructions below for vc)
1) Rename config.h.win32 to config.h
2) include prj/id3lib.dsp and zlib/prj/zlib.dsp to your workspace (*note this is a different id3lib than above)
3) make your project dependend on id3lib, and make id3lib dependend on zlib
4) Add /D ID3LIB_LINKOPTION=3 to your project options (settings, C/C++ tab) (*note this is a different option than above)
5) Add the following include dirs to your program:
/I <path_to_id3lib>\\include /I <path_to_id3lib>\\include\\id3
6) (add your code which uses id3lib)
7) Compile.
8 ) dump id3lib.dll in your programs project dir.
9) distribute your program including id3lib.dll
(MS recommend you distribute it in your programs dir and not in system(32) to avoid version conficts)
and it worked without any trouble. You can ignore 8+9 since you're not actually using any functions from the dll. It looks like you maybe forgot #4.

Per Ardua Ad Astra
Wedge_ is offline   Reply With Quote
Old 11-11-2005, 01:59 PM   permalink #5
Cartman's Avatar
Cartman
Senior Member
 
Jan 2005
Last Seen: 09-25-2006
Location: United States of American
Posts: 1,762 (#51)
Thanked 0x in 0 posts

Yeah i compiled it however, it just says a .dll file has been made... how do i run my cpp file? Where is the exe which this should create?
Cartman is offline   Reply With Quote
Old 11-11-2005, 02:07 PM   permalink #6
Wedge_'s Avatar
Wedge_
Rogue One
 
Jan 2005
Last Seen: Today
Location: Scotland
Posts: 978 (#89)
Thanked 0x in 0 posts

Which type of project did you create to start with? Have you got it set as the active project (Project menu -> Set Active Project)? If you have id3lib or zlib selected as the active project it won't compile your code. Once you have your project active it should produce an exe as usual.
Wedge_ is offline   Reply With Quote
Old 11-12-2005, 06:47 PM   permalink #7
funkgab's Avatar
funkgab
Tweak Minion
 
Jan 2005
Last Seen: 07-17-2008
Location: Los Angeles, California
Posts: 1,128 (#81)
Thanked 0x in 0 posts

Quote:
Originally Posted by Wedge_
I just went through and followed the instructions, specifically this bit:
Quote:
C)***Your project wants to link id3lib dynamic: (instructions below for vc)
1) Rename config.h.win32 to config.h
2) include prj/id3lib.dsp and zlib/prj/zlib.dsp to your workspace (*note this is a different id3lib than above)
3) make your project dependend on id3lib, and make id3lib dependend on zlib
4) Add /D ID3LIB_LINKOPTION=3 to your project options (settings, C/C++ tab) (*note this is a different option than above)
5) Add the following include dirs to your program:
/I <path_to_id3lib>\\include /I <path_to_id3lib>\\include\\id3
6) (add your code which uses id3lib)
7) Compile.
8 ) dump id3lib.dll in your programs project dir.
9) distribute your program including id3lib.dll
(MS recommend you distribute it in your programs dir and not in system(32) to avoid version conficts)
it worked fine with me too
funkgab is offline   Reply With Quote
Old 11-16-2005, 08:58 AM   permalink #8
Cartman's Avatar
Cartman
Senior Member
 
Jan 2005
Last Seen: 09-25-2006
Location: United States of American
Posts: 1,762 (#51)
Thanked 0x in 0 posts

Quote:
Originally Posted by Wedge_
Which type of project did you create to start with? Have you got it set as the active project (Project menu -> Set Active Project)? If you have id3lib or zlib selected as the active project it won't compile your code. Once you have your project active it should produce an exe as usual.
k... (thanks) paypal e-mail address?
Cartman is offline   Reply With Quote
Old 10-15-2006, 12:29 AM   permalink #9
thedp
Junior Member
 
Oct 2006
Last Seen: 11-09-2006
Posts: 1 (#732)
Thanked 0x in 0 posts

Can someone please guide me through the steps of setting the library on my VS2003 ???

I simply don't understand where they expect me to place all this.

Please help.

Thank you.
thedp is offline   Reply With Quote
Old 10-15-2006, 02:06 AM   permalink #10
Wedge_'s Avatar
Wedge_
Rogue One
 
Jan 2005
Last Seen: Today
Location: Scotland
Posts: 978 (#89)
Thanked 0x in 0 posts

Quote:
Originally Posted by thedp View Post
Can someone please guide me through the steps of setting the library on my VS2003 ???

I simply don't understand where they expect me to place all this.
You mean where the library files should be located? They can go anywhere really, you just need to adjust the paths you use in the project settings.
Wedge_ is offline   Reply With Quote
Reply

Login to reply. Sign-up here.



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Volvo 242 project thread *UPDATE* jag_e_fattig Gearhead Garage 25 03-10-2007 11:52 PM
Wanting a Project car.. ThatHideousStrength Gearhead Garage 9 05-01-2006 01:55 PM
Sun's Project Darkstar bwebb Status and Feedback 0 03-28-2006 12:31 PM
Final Project Idea Jamsan Off-Topic 2 11-20-2005 05:34 PM
Starting a Project Car bobdolerules2 Gearhead Garage 13 10-09-2005 10:08 AM


All times are GMT -7. The time now is 10:26 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0
©Tweak3D.Net 1998-2008Ad Management by RedTyger