Hello, thanks for taking the time to help.
_System_
O/S: Windows 7 Home Premium 64 bit
Compiler: minGW 5.1.6
IDE: Eclipse
_Problem_
I'm experiencing an AppCrash when trying to run the following Application:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
#include <iostream>
using std::cout;
using std::getchar;
#include "boost/asio.hpp"
using boost::asio::io_service;
using boost::asio::ip::tcp;
int main()
{
io_service ios;
cout << "Press any key to crash this application for some mysterious unknown reason...: ";
cout.flush();
getchar();
tcp::acceptor* acceptor_ = new tcp::acceptor(ios, tcp::endpoint(tcp::v4(), 44444));
return 0;
}
|
_What I've Tried_
* Spent literally days searching Google for a solution for this issue, unsuccessfully
* Obtained the latest version of Eclipse
* Obtained the latest 'stable' release of the boost library
* Confirmed that the call to the boost::asio::ip::tcp::acceptor constructor is where the crash is occurring.
_Other Notes_
* I just lay code as a hobby, so I'm really do not have a mastery understanding of the GNU compiler, eclipse, or the inner workings of the C linker, etc...I was just hoping that I could type some code, hit compile, and run it, but as I've learned with C++ in general, I spend 98% of the time trying to get the developer tools (IDE/Compiler/Linker) configured to the point where it will actually work and 2% actually programming. I used to do a lot of Java based programming, and never had any issues with the compiling system. Am I missing something, because I can hardly believe such a language as C++ wouldn't have better development tools.
* I really do not want to run this inside a debugger to find out what's wrong and fix a 'standard' library such as boost to get it to work especially for my system.
* I suppose that if there isn't a solution to this issue, I might as well just reinvent the wheel to have something that will actually run on my system.
_Closing_
Once again, thanks to anyone who is willing to help me get this figured out.
Best regards,
Luc