So I noticed that including the following PCH header files file crashes g++
The content of which is given below.

#pragma once



#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>

#ifdef __cplusplus

#include <windows.h>
#include <winnt.h>
#include <d3dx9math.h>



#include <vector>
#include <string>
#include <map>


#define BOOST_ALL_DYN_LINK
#define BOOST_ALL_NO_LIB


#define BOOST_LIB_NAME boost_date_time
#define BOOST_DYN_LINK
#include <boost/config/auto_link.hpp>

#define BOOST_LIB_NAME boost_filesystem
#define BOOST_DYN_LINK
#include <boost/config/auto_link.hpp>

#define BOOST_LIB_NAME boost_thread
#define BOOST_DYN_LINK
#include <boost/config/auto_link.hpp>

#define BOOST_LIB_NAME boost_program_options
#define BOOST_DYN_LINK
#include <boost/config/auto_link.hpp>

#pragma warning(push)
#pragma warning(disable:4244)
#pragma warning(disable:4267)
#pragma warning(disable:4996)
#include <boost/format.hpp>
#include <boost/tokenizer.hpp>
#include <boost/foreach.hpp>
#include <boost/format.hpp>
#include <boost/program_options/detail/convert.hpp>
#include <boost/filesystem.hpp>
#include <boost/function.hpp>
#include <boost/bind.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/thread.hpp>
#pragma warning(pop)

#if (BOOST_VERSION >= 103600)
#define BOOST_LIB_NAME boost_system
#define BOOST_DYN_LINK
#include <boost/config/auto_link.hpp>
#endif



#pragma warning(push)
#pragma warning(disable:4251)
#pragma warning(disable:4275)
#pragma warning(disable:4005)



#include <gt_base.h>
#include <gt_gpu.h>
#include <gt_math.h>
#include <gt_ode.h>

#pragma warning(pop)

#pragma warning(error: 4541) // RTTI is disabled
#pragma warning(disable: 4251)

#endif //__cplusplus


On Tue, Apr 14, 2015 at 1:24 PM, James Franco <mjfranc...@gmail.com> wrote:

> Here is the compiler invocation
>
> g++.exe -std=c++11 -Winvalid-pch -fpermissive -include "ktafx.h" -D_DEBUG
> -D_USRDLL -DKT_THREAD_NAME=GAME -DBOOST_EXCEPTION_DISABLE
> -DAFP_BINDATA_USE_OFFSET -DAVS_NDEBUG -DAVS_TARGET_WIN7 -DAVS_POINTER_64BIT
> -D_WINDLL -D_UNICODE -DUNICODE -DKT_WRAPPER_EXPORTS -DMINGW_COMPILER
> -D__MINGW64__ -std=c++11 -IDeviceDrivers -ISharedFunctions\SourceCode
> -ISharedFunctions\SourceCode\option -IKT_Wrapper\DShowLib -Isndlib\
> -Isndlib\misc -IApplicationInterface\SourceCode -ITNVRAM
> -I..\..\..\..\mingw64\required\boost_1_57_0
> -IC:\Users\admin\appx\GT\GT\GT_base -IC:\Users\admin\appx\GT\GT\GT_gpu
> -IC:\Users\admin\appx\GT\GT\GT_math -IC:\Users\admin\appx\GT\GT\GT_memory
> -IC:\Users\admin\appx\GT\GT\GT_resource
> -IC:\Users\admin\appx\GT\GT\GT_synchronize
> -IC:\Users\admin\appx\GT\GT\GT_ode
> -IC:\Users\admin\appx\GT\GT\GT_ode\ode\include
> -IC:\Users\admin\appx\GT_Wrapper\wrapper\Core
> -IC:\Users\admin\appx\GT_Wrapper -IC:\Users\admin\appx\GT\GT\GT_actor
> -IC:\Users\admin\appx\GT\GT\GT_flash
> -IC:\Users\admin\appx\GT_Wrapper\wrapper\3D
> -IC:\Users\admin\appx\GT\GT\GT_camera
> -IC:\Users\admin\appx\GT_Wrapper\wrapper\Load
> -IC:\Users\admin\appx\SharedFunctions\SourceCode
> -IC:\Users\admin\appx\AFP_Wrapper\wrapper
> -IC:\Users\admin\appx\AVS_Wrapper\wrapper
> -IC:\Users\admin\appx\AFP_Wrapper\afp\include
> -IC:\Users\admin\appx\AVS_Wrapper\avs2\include
> -IC:\Users\admin\appx\AVS_Wrapper -IC:\Users\admin\appx\GT\GT\GT_model
> -IC:\Users\admin\appx\GT\GT\GT_thread
> -IC:\Users\admin\appx\GT\GT\GT_debug\GT_perfmon
> -IC:\Users\admin\appx\GT\GT\GT_tick
> -IC:\Users\admin\appx\GT\GT\GT_application
> -IC:\Users\admin\appx\GT_Wrapper\wrapper\2D
> -IC:\mingw64\opt\libxml\include\ -IC:\Users\admin\appx\xml\include
> -IC:\Users\admin\appx\ApplicationInterface\SourceCode
> -IC:\Users\admin\appx\GT\GT\GT_movie -IC:\Users\admin\appx\GT\GT\GT_light
> -IC:\Users\admin\appx\GT\GT\GT_animation
> -IC:\Users\admin\appx\GT\GT\GT_animation2
> -IC:\Users\admin\appx\GT\GT\GT_shadow\GT_shadowvolume
> -IC:\Users\admin\appx\GT\GT\GT_particle
> -IC:\Users\admin\appx\GT_Wrapper\wrapper\Scene
> -IC:\Users\admin\appx\GT\GT\GT_random\GT_random_mt
> -IC:\Users\admin\appx\GT_Wrapper\ -IC:\Users\admin\appx\GT\GT\GT_sort
> -IC:\Users\admin\appx\GT_Wrapper\wrapper\Font
> -IC:\Users\admin\appx\GT_Wrapper\wrapper\Physics
> -IC:\Users\admin\appx\SharedFunctions\SourceCode\option
> -IC:\Users\admin\appx\GT_Wrapper\wrapper\Debug
> -IC:\Users\admin\appx\GT\GT\GT_storage -IC:\Users\admin\appx\GT\GT\GT_debug
> -IC:\Users\admin\appx\DeviceDrivers -IC:\Users\admin\appx\TNVRAM
> -IC:\Users\admin\appx\GT_Wrapper\wrapper\Layout
> -IC:\Users\admin\appx\GT\GT\GT_font
> -IC:\Users\admin\appx\GT\GT\GT_font\GT_truetype
> -IC:\Users\admin\appx\GT\GT\GT_font\GT_truetype\include
> -IC:\Users\admin\appx\GT\GT\GT_fs -IC:\Users\admin\appx\GT\GT\GT_sprite
> -IC:\mingw64\required\ACE\ACE_wrappers
> -IC:\Users\admin\appx\GT\GT\GT_ode_support
> -IC:\Users\admin\appx\GT\GT\GT_ode_support\include
> -IC:\Users\admin\appx\GT\GT\GT_ode\include\GT_ode_common -I"C:\Program
> Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\lib"
> -IC:\Users\admin\appx\GT\DShowLib -IC:\Users\admin\appx\GT_Wrapper -c
> C:\Users\admin\appx\GT_Wrapper\GT_Wrapper.cpp -o "Win32\Debug
> x64\GT_Wrapper\GT_Wrapper.o"
>
> Process terminated with status 1 (15 minute(s), 59 second(s))
> 0 error(s), 1835 warning(s) (15 minute(s), 59 second(s))
>
>
> Kindly let me know if you suspect any flags that might be responsible for
> the crash. Earlier I noticed that the flag WIN32_LEAN_AND_MEAN would
> crash g++
>
> On Tue, Apr 14, 2015 at 11:45 AM, Ruben Van Boxem <
> vanboxem.ru...@gmail.com> wrote:
>
>> 2015-04-14 19:13 GMT+02:00 James Franco <mjfranc...@gmail.com>:
>>
>>> I am attempting to port a project from Visual Studio to Mingw 64 bit
>>> GCC. During the port when I attempt to build a certain component using
>>> Mingw g++ through CodeBlocks I get the error
>>> "cc1plus.exe has stopped working." Is there a way for me to figure out
>>> what might be the cause of this crash ? Could it be a certain flag ? or
>>> something else ? The details of My Mingw64 are as follows
>>>
>>> c:\mingw64\bin>gcc --version
>>> gcc (x86_64-win32-seh-rev3, Built by MinGW-W64 project) 4.8.2
>>> Copyright (C) 2013 Free Software Foundation, Inc.
>>> This is free software; see the source for copying conditions.  There is
>>> NO
>>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
>>> PURPOSE.
>>>
>>> Any suggestions are welcome.
>>>
>>
>> Could you provide the source file that triggers the crash together with
>> the compiler invocation?
>>
>> Does the crash also happen with GCC 4.9 and/or 4.7, if it will compile
>> your code at all?
>>
>> Cheers,
>>
>> Ruben
>>
>>
>> ------------------------------------------------------------------------------
>> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
>> Develop your own process in accordance with the BPMN 2 standard
>> Learn Process modeling best practices with Bonita BPM through live
>> exercises
>> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-
>> event?utm_
>> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
>> _______________________________________________
>> Mingw-w64-public mailing list
>> Mingw-w64-public@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>>
>>
>
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to