I added that include line to the cpGUI.cpp and the two errors mentioned above disappear. Also I added -Wall to my build line to show me any other possible errors. Now I'm getting this
Compiling...
In file included from main.cpp:27:
cpGUI.h:90: warning: `class cp::cpObject' has virtual functions but non-virtual
destructor
cpGUI.h:136: warning: `class cp::cpImageButton' has virtual functions but non-vi
rtual destructor
cpGUI.h:154: warning: `class cp::cpButton' has virtual functions but non-virtual
destructor
cpGUI.h:183: warning: `class cp::cpCheckBox' has virtual functions but non-virtu
al destructor
cpGUI.h:203: warning: `class cp::cpTextInputBox' has virtual functions but non-v
irtual destructor
cpGUI.h:235: warning: `class cp::cpShapeButton' has virtual functions but non-vi
rtual destructor
cpGUI.h:294: warning: `class cp::cpSelectionBox' has virtual functions but non-v
irtual destructor
cpGUI.h:328: warning: `class cp::cpDropDownBox' has virtual functions but non-vi
rtual destructor
cpGUI.h:363: warning: `class cp::cpTextBox' has virtual functions but non-virtua
l destructor
In file included from cpGUI.cpp:26:
cpGUI.h:90: warning: `class cp::cpObject' has virtual functions but non-virtual
destructor
cpGUI.h:136: warning: `class cp::cpImageButton' has virtual functions but non-vi
rtual destructor
cpGUI.h:154: warning: `class cp::cpButton' has virtual functions but non-virtual
destructor
cpGUI.h:183: warning: `class cp::cpCheckBox' has virtual functions but non-virtu
al destructor
cpGUI.h:203: warning: `class cp::cpTextInputBox' has virtual functions but non-v
irtual destructor
cpGUI.h:235: warning: `class cp::cpShapeButton' has virtual functions but non-vi
rtual destructor
cpGUI.h:294: warning: `class cp::cpSelectionBox' has virtual functions but non-v
irtual destructor
cpGUI.h:328: warning: `class cp::cpDropDownBox' has virtual functions but non-vi
rtual destructor
cpGUI.h:363: warning: `class cp::cpTextBox' has virtual functions but non-virtua
l destructor
cpGUI.cpp: In member function `int cp::cpScrollBar::CheckState(const sf::Input*)
':
cpGUI.cpp:1561: warning: unused variable 'c1'
cpGUI.cpp:1562: warning: unused variable 'c2'
Finished!
Run Executable? 'y' or 'n'
And I hit Y, it runs, and everything works perfectly. But when I exit it the process hangs for about 2 minutes and then gives me a "do you want to send more information about the problem?" error.
Details:
Files that help describe the problem:
C:\Users\David\AppData\Local\Temp\WER3779.tmp.WERInternalMetadata.xml
C:\Users\David\AppData\Local\Temp\WER7D5F.tmp.appcompat.txt
C:\Users\David\AppData\Local\Temp\WER7E2B.tmp.mdmp
Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt
C:\Users\David\AppData\Loca\Temp\WER3779.tmp.WERInternalMetadata.xml
<?xml version="1.0" encoding="UTF-16"?>
<WERReportMetadata>
<OSVersionInformation>
<WindowsNTVersion>6.1</WindowsNTVersion>
<Build>7600 </Build>
<Product>(0x1): Windows 7 Ultimate</Product>
<Edition>Ultimate</Edition>
<BuildString>7600.16385.x86fre.win7_rtm.090713-1255</BuildString>
<Revision>1</Revision>
<Flavor>Multiprocessor Free</Flavor>
<Architecture>X86</Architecture>
<LCID>1033</LCID>
</OSVersionInformation>
<ParentProcessInformation>
<ParentProcessId>3520</ParentProcessId>
<ParentProcessPath>C:\Windows\System32\cmd.exe</ParentProcessPath>
<ParentProcessCmdLine>cmd /c ""C:\Users\David\Desktop\NLO stuff\Compile\compile.bat" "</ParentProcessCmdLine>
</ParentProcessInformation>
<ProblemSignatures>
<EventType>APPCRASH</EventType>
<Parameter0>main.exe</Parameter0>
<Parameter1>0.0.0.0</Parameter1>
<Parameter2>4aa1be27</Parameter2>
<Parameter3>ntdll.dll</Parameter3>
<Parameter4>6.1.7600.16385</Parameter4>
<Parameter5>4a5bdadb</Parameter5>
<Parameter6>c0000005</Parameter6>
<Parameter7>000520bd</Parameter7>
</ProblemSignatures>
<DynamicSignatures>
<Parameter1>6.1.7600.2.0.0.256.1</Parameter1>
<Parameter2>1033</Parameter2>
<Parameter22>4bd1</Parameter22>
<Parameter23>4bd1049f64c514e5b780fba7750a6444</Parameter23>
<Parameter24>047f</Parameter24>
<Parameter25>047f8eae1393d3b43639cbda06828f50</Parameter25>
</DynamicSignatures>
<SystemInformation>
<MID>4BF97D24-63F3-4E1A-9F80-7AE1AEEB70A3</MID>
<SystemManufacturer>Acer</SystemManufacturer>
<SystemProductName>Aspire one</SystemProductName>
<BIOSVersion>V1.03</BIOSVersion>
</SystemInformation>
</WERReportMetadata>
C:\Users\David\AppData\Local\Temp\WER7D5F.tmp.appcompat.txt
<?xml version="1.0" encoding="UTF-16"?>
<DATABASE>
<EXE NAME="main.exe" FILTER="CMI_FILTER_PRIVACY">
<MATCHING_FILE NAME="main.exe" SIZE="832870" CHECKSUM="0x64F72539" MODULE_TYPE="WIN32" PE_CHECKSUM="0xD3E2A" LINKER_VERSION="0x10000" LINK_DATE="09/05/2009 01:25:59" UPTO_LINK_DATE="09/05/2009 01:25:59" EXE_WRAPPER="0x0" FILE_ID="00006435dac87dcdec294673fd02182c256ac347385a" PROGRAM_ID="0000da39a3ee5e6b4b0d3255bfef95601890afd80709" />
<MATCHING_FILE NAME="sfml-audio.dll" SIZE="615028" CHECKSUM="0x5B7C2B7D" MODULE_TYPE="WIN32" PE_CHECKSUM="0x9D5EB" LINKER_VERSION="0x10000" LINK_DATE="05/28/2009 16:25:22" UPTO_LINK_DATE="05/28/2009 16:25:22" EXPORT_NAME="sfml-audio.dll" EXE_WRAPPER="0x0" FILE_ID="000069073a2742bbd65693a8e74eb147adaadcb7b83d" PROGRAM_ID="0003470739f515012dff8c3593313a1a1d400000ffff" />
<MATCHING_FILE NAME="sfml-graphics.dll" SIZE="2103323" CHECKSUM="0xE5BFB186" MODULE_TYPE="WIN32" PE_CHECKSUM="0x20CB51" LINKER_VERSION="0x10000" LINK_DATE="05/28/2009 16:25:15" UPTO_LINK_DATE="05/28/2009 16:25:15" EXPORT_NAME="sfml-graphics.dll" EXE_WRAPPER="0x0" FILE_ID="00003313da24bc1dffa0365d0517712225570799f7b5" PROGRAM_ID="0003abcd64bf3aefe0f4bbf259ad6f3f91060000ffff" />
<MATCHING_FILE NAME="sfml-network.dll" SIZE="619251" CHECKSUM="0x6CEA735" MODULE_TYPE="WIN32" PE_CHECKSUM="0x99A28" LINKER_VERSION="0x10000" LINK_DATE="05/28/2009 16:24:52" UPTO_LINK_DATE="05/28/2009 16:24:52" EXPORT_NAME="sfml-network.dll" EXE_WRAPPER="0x0" FILE_ID="0000aa2041af973efa60795da7418da8a7aecf230f28" PROGRAM_ID="0003b5b4a913697cc1c6748b29fba99c74040000ffff" />
<MATCHING_FILE NAME="sfml-system.dll" SIZE="533351" CHECKSUM="0xD1667E5C" MODULE_TYPE="WIN32" PE_CHECKSUM="0x8A934" LINKER_VERSION="0x10000" LINK_DATE="05/28/2009 16:24:43" UPTO_LINK_DATE="05/28/2009 16:24:43" EXPORT_NAME="sfml-system.dll" EXE_WRAPPER="0x0" FILE_ID="0000a4f286ea3cd304388424329ce7af7ea0c8be85ff" PROGRAM_ID="000325ccb3fd7e77ad97e66837ecfe6a909a0000ffff" />
<MATCHING_FILE NAME="sfml-window.dll" SIZE="563938" CHECKSUM="0xC77A85AF" MODULE_TYPE="WIN32" PE_CHECKSUM="0x91A68" LINKER_VERSION="0x10000" LINK_DATE="05/28/2009 16:24:46" UPTO_LINK_DATE="05/28/2009 16:24:46" EXPORT_NAME="sfml-window.dll" EXE_WRAPPER="0x0" FILE_ID="0000cc28f5058e87e2d4e093c68e8f0ba24d877a21fd" PROGRAM_ID="0003acaf3e3460b7f9e3fab39483cedbe36f0000ffff" />
</EXE>
<EXE NAME="ntdll.dll" FILTER="CMI_FILTER_THISFILEONLY">
<MATCHING_FILE NAME="ntdll.dll" SIZE="1286144" CHECKSUM="0x1220566E" BIN_FILE_VERSION="6.1.7600.16385" BIN_PRODUCT_VERSION="6.1.7600.16385" PRODUCT_VERSION="6.1.7600.16385" FILE_DESCRIPTION="NT Layer DLL" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Microsoft® Windows® Operating System" FILE_VERSION="6.1.7600.16385 (win7_rtm.090713-1255)" ORIGINAL_FILENAME="ntdll.dll.mui" INTERNAL_NAME="ntdll.dll" LEGAL_COPYRIGHT="© Microsoft Corporation. All rights reserved." VERDATEHI="0x0" VERDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x14033F" LINKER_VERSION="0x60001" UPTO_BIN_FILE_VERSION="6.1.7600.16385" UPTO_BIN_PRODUCT_VERSION="6.1.7600.16385" LINK_DATE="07/14/2009 01:09:47" UPTO_LINK_DATE="07/14/2009 01:09:47" EXPORT_NAME="ntdll.dll" VER_LANGUAGE="English (United States) [0x409]" EXE_WRAPPER="0x0" FILE_ID="00009d56bf20851f26960c4c33dd4bde84730c8d483f" PROGRAM_ID="0000f519feec486de87ed73cb92d3cac802400000000" />
</EXE>
<EXE NAME="kernel32.dll" FILTER="CMI_FILTER_THISFILEONLY">
<MATCHING_FILE NAME="kernel32.dll" SIZE="857088" CHECKSUM="0x22F48E19" BIN_FILE_VERSION="6.1.7600.16385" BIN_PRODUCT_VERSION="6.1.7600.16385" PRODUCT_VERSION="6.1.7600.16385" FILE_DESCRIPTION="Windows NT BASE API Client DLL" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Microsoft® Windows® Operating System" FILE_VERSION="6.1.7600.16385 (win7_rtm.090713-1255)" ORIGINAL_FILENAME="kernel32" INTERNAL_NAME="kernel32" LEGAL_COPYRIGHT="© Microsoft Corporation. All rights reserved." VERDATEHI="0x0" VERDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0xD5597" LINKER_VERSION="0x60001" UPTO_BIN_FILE_VERSION="6.1.7600.16385" UPTO_BIN_PRODUCT_VERSION="6.1.7600.16385" LINK_DATE="07/14/2009 01:09:01" UPTO_LINK_DATE="07/14/2009 01:09:01" EXPORT_NAME="KERNEL32.dll" VER_LANGUAGE="English (United States) [0x409]" EXE_WRAPPER="0x0" FILE_ID="00004f0b455c60c4292a488291d8c29f48aeec7a17e7" PROGRAM_ID="0000f519feec486de87ed73cb92d3cac802400000000" />
</EXE>
</DATABASE>
DefaultDataCollection failed: 0x8007001f
Idk what to do.
And I'm not trying to load any different fonts. I'm using your source code provided to try and build this. The cpGUI-Example.cpp is what I'm trying to build.