Commit 510c6541 authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

COMP: dynamic cast for mingw compilation windows 7

No related merge requests found
Showing with 21 additions and 20 deletions
+21 -20
......@@ -156,7 +156,8 @@ private:
if( rescaleType == "none" )
{
castIm = this->GetParameterImage<TImageType>("in");
// castIm = this->GetParameterImage<TImageType>("in");
castIm = dynamic_cast<TImageType*>(this->GetParameterImage("in"));
}
else
{
......
# This file contains the common build definitions and flags used by default when building all targets
if(WIN32)
if(MSVC)
# do not build shared lib under windows
set(BUILD_SHARED_LIBS OFF)
message(STATUS "Disabling build shared lib option on windows like OS.")
......
......@@ -69,7 +69,7 @@ set(OTB_INCLUDE_DIRS_BUILD_TREE ${OTB_INCLUDE_DIRS_BUILD_TREE}
${JPEG_INCLUDE_DIRS}
${OGR_INCLUDE_DIRS})
if(WIN32)
if(MSVC)
set(OTB_INCLUDE_DIRS_BUILD_TREE ${OTB_INCLUDE_DIRS_BUILD_TREE}
${OTB_SOURCE_DIR}/Utilities/otbmsinttypes )
endif()
......
......@@ -2,7 +2,7 @@
# Sources of non-templated classes.
file(GLOB OTBApplicationEngine_SRCS "*.cxx" )
if(WIN32)
if(MSVC)
set(CMAKE_C_FLAGS "/bigobj ${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS "/bigobj ${CMAKE_CXX_FLAGS}")
endif()
......
......@@ -31,7 +31,7 @@ namespace Wrapper
* itk::ProcessObject and a string describing the process.
*
*/
class ITK_EXPORT AddProcessToWatchEvent: public itk::EventObject
class ITK_ABI_EXPORT AddProcessToWatchEvent: public itk::EventObject
{
public:
......
......@@ -45,7 +45,7 @@ namespace Wrapper
* TODO
*
*/
class ITK_EXPORT Application: public itk::Object
class ITK_ABI_EXPORT Application: public itk::Object
{
public:
/** Standard class typedefs. */
......
......@@ -27,7 +27,7 @@ namespace Wrapper
{
template < class TApplication >
class ApplicationFactory : public itk::ObjectFactoryBase
class ITK_ABI_EXPORT ApplicationFactory : public itk::ObjectFactoryBase
{
public:
/** Standard class typedefs. */
......
......@@ -29,7 +29,7 @@ namespace Wrapper
* class doc attributes.
*/
class ITK_EXPORT ApplicationHtmlDocGenerator
class ITK_ABI_EXPORT ApplicationHtmlDocGenerator
{
public:
/** Standard class typedef */
......
......@@ -35,7 +35,7 @@ namespace Wrapper
* TODO
*
*/
class ITK_EXPORT ApplicationRegistry : public itk::Object
class ITK_ABI_EXPORT ApplicationRegistry : public itk::Object
{
public:
/** Standard class typedefs. */
......
......@@ -32,7 +32,7 @@ namespace Wrapper
* Represents an enumerated parameter.
* The different values of the enumeration can be associated with a parameter
*/
class ChoiceParameter
class ITK_ABI_EXPORT ChoiceParameter
: public Parameter
{
public:
......
......@@ -30,7 +30,7 @@ namespace Wrapper
* \brief This class represents a ComplexInputImage parameter
*/
class ITK_EXPORT ComplexInputImageParameter : public Parameter
class ITK_ABI_EXPORT ComplexInputImageParameter : public Parameter
{
public:
/** Standard class typedef */
......
......@@ -30,7 +30,7 @@ namespace Wrapper
* \brief This class represents a ComplexOutputImage parameter
*/
class ITK_EXPORT ComplexOutputImageParameter : public Parameter
class ITK_ABI_EXPORT ComplexOutputImageParameter : public Parameter
{
public:
/** Standard class typedef */
......
......@@ -31,7 +31,7 @@ namespace Wrapper
/** \class DirectoryParameter
* \brief This class represent a string parameter for the wrapper framework
*/
class DirectoryParameter
class ITK_ABI_EXPORT DirectoryParameter
: public Parameter
{
public:
......
......@@ -41,7 +41,7 @@ namespace Wrapper
* User has to set the application name, the binary path and a list of
* key/value couple.
*/
class DocExampleStructure :
class ITK_ABI_EXPORT DocExampleStructure :
public itk::Object
{
public:
......
......@@ -38,7 +38,7 @@ namespace Wrapper
*
*/
class ElevationParametersHandler
class ITK_ABI_EXPORT ElevationParametersHandler
{
public:
/**
......
......@@ -28,7 +28,7 @@ namespace Wrapper
/** \class EmptyParameter
* \brief This class represent an empty parameter for the wrapper framework (boolean value)
*/
class EmptyParameter
class ITK_ABI_EXPORT EmptyParameter
: public Parameter
{
public:
......
......@@ -32,7 +32,7 @@ namespace Wrapper
* \brief This class represents a list of InputFilename parameter
*/
class ITK_EXPORT InputFilenameListParameter : public Parameter
class ITK_ABI_EXPORT InputFilenameListParameter : public Parameter
{
public:
/** Standard class typedef */
......
......@@ -29,7 +29,7 @@ namespace Wrapper
/** \class InputFilenameParameter
* \brief This class represent a string parameter for the wrapper framework
*/
class InputFilenameParameter
class ITK_ABI_EXPORT InputFilenameParameter
: public Parameter
{
public:
......
......@@ -31,7 +31,7 @@ namespace Wrapper
* \brief This class represents a list of InputImage parameter
*/
class ITK_EXPORT InputImageListParameter : public Parameter
class ITK_ABI_EXPORT InputImageListParameter : public Parameter
{
public:
/** Standard class typedef */
......
......@@ -30,7 +30,7 @@ namespace Wrapper
* \brief This class represents a InputImage parameter
*/
class ITK_EXPORT InputImageParameter : public Parameter
class ITK_ABI_EXPORT InputImageParameter : public Parameter
{
public:
/** Standard class typedef */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment