| |
| | |
| Join The Cult | Tweakers | Image Gallery | Donate | Search | Today's Posts | Mark Forums Read | |
Welcome to Tweak3DThis is an open forum about tech stuff, games, and cars. Sign-up here to join the discussion. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | I'll pay $10 for C++ compiling help. (large project) | permalink #1 |
| Senior Member | 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. 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." | ||
| | | |
| | #2 |
| | |
| | |
| | permalink #2 | |
| Too old to be this dumb! | 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 | ||
| | | |
| | permalink #3 | |
| Senior Member | 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 | |
| | | |
| | permalink #4 | ||
| Rogue One | I just went through and followed the instructions, specifically this bit: Quote:
| ||
| Per Ardua Ad Astra | |||
| | | ||
| | permalink #5 | |
| Senior Member | 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? | |
| | | |
| | permalink #6 | |
| Rogue One | 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. | |
| | | |
| | permalink #7 | |||
| Tweak Minion | Quote:
| |||
| | | |||
| | permalink #8 | ||
| Senior Member | Quote:
| ||
| | | ||
| | permalink #9 | |
| Junior Member | 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. | |
| | | |
| | permalink #10 | |
| Rogue One | 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. | |
| | | |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
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 |