uyumsuzdur: Ben aşağıdaki satırları koymak ve ortak çalışma zamanını etkinleştirdiğinizdehata D8016: '/ ZI' ve '/ clr' komut satırı seçenekleri benim programda aşağıdaki hatayı alıyorum
error D8016: '/ZI' and '/clr' command-line options are incompatible
bu gerçekleşir Genel yapılandırmanızın> Aslında yukarıdaki dll gerektirir benim kodunda bazı pencereler kütüphane kullanıyor olacak
#using <system.drawing.dll>
using namespace System;
using namespace System::Drawing;
(ben sonra etkinleştirmek etmezsek hata sistemi ve System :: Çizim kullanmada gelecektir).
Bu sorun nasıl çözülür? Görsel stüdyoda
#include "opencv2/highgui/highgui.hpp"
#include <opencv2/imgproc/imgproc_c.h>
#include "opencv2/highgui/highgui.hpp"
#include <iostream>
#include <ctype.h>
#using <system.drawing.dll>
using namespace System;
using namespace System::Drawing;
using namespace std;
int main(int argc, char** argv)
{
IplImage *source = cvLoadImage("Image.bmp");
// Here we retrieve a percentage value to a integer
int percent =20;
// declare a destination IplImage object with correct size, depth and channels
IplImage *destination = cvCreateImage
(cvSize((int)((source->width*percent)/100) , (int)((source->height*percent)/100)),
source->depth, source->nChannels);
//use cvResize to resize source to a destination image
cvResize(source, destination);
// save image with a name supplied with a second argument
cvShowImage("new:",destination);
cvWaitKey(0);
return 0;
}
Yani '/ ZI' seçeneği kaldırmak için ayarlayın. Sadece hata ayıklama bilgisi. – arx