![]() |
|
#1
|
||||
|
||||
cant compile with g++ on a unix serveri have successfully compiled this exe with bloodshed's dev and visual on my windows pc, but when i attempt to do so i get an error in collect2. also with visual i get 81 warnings!!! but it still compiles and runs flawlessly here are some of those:
Quote:
Quote:
Quote:
---------------------------------------------------------------- then with g++ i get this one: Quote:
personally i think its got something to do with my vector<string>'s but thats commin from a cosc 2 student ha thanx for your help ppl -nomad311 |
||||
|
#2
|
||||
|
||||
|
Hello,
The C4786 warning is caused by symbols with decorated names that exceed 255 characters, respectively. The best solution is to shorten the length of the identifier or compile for Release mode. If the identifier is a function call, reducing the number of parameters will help reduce the length. With Visual C++ versions 2.x and later, using /Z7 generates the C4786 warning as listed above. This warning can be ignored although the identifier may not be accessible or viewable in the debugger. From a sample code off the Microsoft support site: CPP / C++ / C Code:
It means that MSVC++ 6.0 only uses a maximum of 255 characters for storing identifier names for debugging, so when debugging, the identifier will appear as the appropriate name, yet it chops off everything after the 255th character. You can usually safely just ignore or even disable this warning. Quote:
This basically means that main cannot find Drugs::getDrug(), Drug::print(), and the following shown in that list. One resolution to that problem is to include the header file that contains your class definition and body. If you already have a header file, be sure to #include that header in main.cpp. Also, one thing I did notice was that you build main.cpp and attempt to build main.o: Quote:
Quote:
Quote:
If you have further questions, please feel free to ask. - Stack Overflow __________________
Following the rules will ensure you get a prompt answer to your question. If posting code, please include BB [C] / [C++] tags. Your question may have been asked before, try the search facility. |
|
#3
|
|||
|
|||
|
ha Stack i was reading in another forum proly while u were writing all that and i just compiled it manually (not using the make file) ...so i realized (after 7hrs of trash!!!!) that i had to add all the .cpp's to the SRCS line. then everything worked out -so here the Makefile is is (incase any1 else was as slow as myself):
Quote:
Quote:
heres what im workin with: vector.h -(template class) depends on uhhh ...stl's ha drug.h/.cpp -depends on vector amphetamine.h/.cpp barbituate.h/.cpp hallucinogen.h/.cpp opiate.h/.cpp tranquillizer.h/.cpp -depends on drug drugs.h/.cpp -depends on the types of drugs main.h/.cpp -depends on everything else so thnx again SO -nomad311 |
Recent GIDBlog
Toyota - 2009 May Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do I include a directory on a networked drive on the Apache2 server? | thewheelman | Apache Web Server Forum | 0 | 23-Mar-2005 12:38 |
| .o compile UNIX stuff ... help please! | crq | C++ Forum | 5 | 28-Jan-2005 08:43 |
| Running Your Own Web Server | Rajaat | Web Hosting Forum | 9 | 05-Jan-2005 22:54 |
| how to post MYSQL data to web server | bearky | Web Hosting Forum | 6 | 13-Jul-2004 06:08 |
| · Windows 2003 Server Reseller Special: Unlimited Domains/2 GB Space/for $19.99 | contactsonia | Web Hosting Advertisements & Offers | 0 | 09-Jan-2004 06:46 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The