| | |
Compiling C++
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Apr 2009
Posts: 5
Reputation:
Solved Threads: 0
Hi, this is my first post here. The fact is i'm not a programmer and i need help. I have a software that i need to solve a vehicle routing problem for my thesis. But i only got the source code for it, one header file and 6 cpp files. I have tried compiling this with no success, the error messages mean nothing to me, maybe i'm missing something, files to compile on win32, i don't know. If any of you guys are willing to help, i would be gladly apreciated (should be no problem for a programmer).
Need this for win32 console.
http://rapidshare.com/files/221788134/sdvrp.zip
Regards,
Jorge
Need this for win32 console.
http://rapidshare.com/files/221788134/sdvrp.zip
Regards,
Jorge
Last edited by jomacho; Apr 15th, 2009 at 6:06 pm.
It doesn't compile in MinGW's GCC. Looks like MSVC code?
I'm getting these errors:
Maybe someone else can compile it tho.
I'm getting these errors:
C++ Syntax (Toggle Plain Text)
=| sdvrp.h|18|warning: ignoring #pragma warning | sdvrp.h|222|warning: no newline at end of file| genius.cpp||In function `double genius(route*&, Nb&)':| genius.cpp|732|warning: comparison between signed and unsigned integer expressions| genius.cpp|733|warning: comparison between signed and unsigned integer expressions| genius.cpp|736|error: no matching function for call to `std::vector<node*, std::allocator<node*> >::erase(node**)'| vector.tcc|108|note: candidates are: typename std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(__gnu_cxx::__normal_iterator<typename _Alloc::pointer, std::vector<_Tp, _Alloc> >) [with _Tp = node*, _Alloc = std::allocator<node*>]| vector.tcc|120|note: typename std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(__gnu_cxx::__normal_iterator<typename _Alloc::pointer, std::vector<_Tp, _Alloc> >, __gnu_cxx::__normal_iterator<typename _Alloc::pointer, std::vector<_Tp, _Alloc> >) [with _Tp = node*, _Alloc = std::allocator<node*>]| ||=== Build finished: 1 errors, 4 warnings ===|
Maybe someone else can compile it tho.
It's just compiling fine with me (it gives a lot of warnings), I'm using the Borland Compiler ...
Edit:: Using the Microsoft C++ compiler (from Visual C++ 2008 Express Edition) I'm also getting this error ...
Edit:: Using the Microsoft C++ compiler (from Visual C++ 2008 Express Edition) I'm also getting this error ...
Last edited by tux4life; Apr 19th, 2009 at 8:44 am.
"Never argue with idiots, they just drag you down to their level and then beat you with experience."
You can get the Borland Compiler for free from here ...
I compiled it by running the following command inside the directory of the source files:
I compiled it by running the following command inside the directory of the source files:
bcc32 -etabu_sdvrp *.cpp Last edited by tux4life; Apr 19th, 2009 at 9:28 am.
"Never argue with idiots, they just drag you down to their level and then beat you with experience."
I tested this program and can confirm it works, but try running it with the wrong number of arguments (1 instead of 2) directly causes the program to crash, it's very 'crash-sensitive' ...
The program is also using 'old C++' code, for example old file handling using the FILE-pointer, etc. ...
So let's say: This program can be improved
The program is also using 'old C++' code, for example old file handling using the FILE-pointer, etc. ...
So let's say: This program can be improved
"Never argue with idiots, they just drag you down to their level and then beat you with experience."
![]() |
Similar Threads
- Compiling Programs (C++)
- Compiling And Running (Java)
- Problems with compiling (Java)
- compiling problems (C++)
- compiling error wtf!?!? (C)
- Please help me out, need help (C)
Other Threads in the C++ Forum
- Previous Thread: Why my progress window automatically shut down?
- Next Thread: Traffic light C++ problem
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code compile compiler console conversion convert count data delete deploy dll download dynamiccharacterarray email encryption error file format forms fstream function functions game givemetehcodez graph homeworkhelp iamthwee ifstream input int java lib library lines list loop looping loops map math matrix memory newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg search simple sorting spoonfeeding string strings struct temperature template templates text text-file tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets






!!