Search found 5 matches

by LeFish
2020-03-30T00:19:51-07:00
Forum: Magick++
Topic: Magick++ stops at reading an image: Access violation
Replies: 2
Views: 2079

Re: Magick++ stops at reading an image: Access violation

I found out something new: I can build the program two different ways - Debug or Release When I build the program as Debug-Version: cmake -G NMake Makefiles -DCMAKE_BUILD_TYPE=Debug .. nmake . I get the previously described error: Exception thrown at 0x00007FFAEC3EC3F9 (msvcr120.dll) in IMHelloWorld...
by LeFish
2020-03-27T14:23:08-07:00
Forum: Magick++
Topic: Magick++ stops at reading an image: Access violation
Replies: 2
Views: 2079

Re: Magick++ stops at reading an image

I debugged the program and I think I have found some issue.

I get an Access violation when I read the image:

Image

Can you guys help me?

Thanks!
by LeFish
2020-03-27T13:09:40-07:00
Forum: Magick++
Topic: Magick++ stops at reading an image: Access violation
Replies: 2
Views: 2079

Magick++ stops at reading an image: Access violation

For my first program I have the following source: #include <iostream> #include <Magick++.h> #include <stdio.h> using namespace std; using namespace Magick; int main(int argc, char *argv[]) { Magick::InitializeMagick(argv[0]); if (argc < 3) { printf("Usage: %s <Input file> <Output file>", argv[0]); r...
by LeFish
2020-03-27T12:58:14-07:00
Forum: Magick++
Topic: Hard time with VSCode and Magick++: Header File not found when compiling
Replies: 1
Views: 1482

Re: Hard time with VSCode and Magick++: Header File not found when compiling

Ok, I resolved this issue by using cmake and cmake extension for vscode. I have the following CMakeLists.txt File: cmake_minimum_required(VERSION 3.0) project(IMHelloWorld VERSION 1.0.0) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") add_executable(IMHelloWorld main.cpp) add_definitions( -DMAG...
by LeFish
2020-03-25T11:52:25-07:00
Forum: Magick++
Topic: Hard time with VSCode and Magick++: Header File not found when compiling
Replies: 1
Views: 1482

Hard time with VSCode and Magick++: Header File not found when compiling

Hi there, I am trying to compile my first ImageMagick project in VSCode http://code.visualstudio.com . I am using the MinGW compiler and added all the necessary folders in c_cpp_properties.json c_cpp_properties.json: { "configurations": [ { "name": "Win32", "includePath": [ "${workspaceFolder}/**", ...