PaoloMassignan

Hello, I've got Visual Studio 2005.. I'm trying to compile Common C++, more precisely GNU ccRTP.

I ottained a lot of error in malloc.h, wchar.h e io.h. This is the list of errors:

c:\programmi\microsoft visual studio 8\vc\include\malloc.h(180) : error C2143: syntax error : missing ';' before '__cdecl'

c:\programmi\microsoft visual studio 8\vc\include\malloc.h(180) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\malloc.h(180) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(319) : error C2143: syntax error : missing ';' before '__cdecl'

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(319) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(319) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(320) : error C2146: syntax error : missing ')' before identifier '_FindHandle'

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(320) : warning C4229: anachronism used : modifiers on data are ignored

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(320) : error C2491: '_wfindnext32' : definition of dllimport data not allowed

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(320) : error C2059: syntax error : ')'

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(328) : error C2143: syntax error : missing ';' before '__cdecl'

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(328) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(328) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(329) : error C2143: syntax error : missing ';' before '__cdecl'

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(329) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(329) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(330) : error C2143: syntax error : missing ';' before '__cdecl'

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(330) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(330) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(331) : error C2146: syntax error : missing ')' before identifier '_FindHandle'

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(331) : warning C4229: anachronism used : modifiers on data are ignored

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(331) : error C2491: '_wfindnext32i64' : definition of dllimport data not allowed

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(331) : error C2059: syntax error : ')'

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(332) : error C2146: syntax error : missing ')' before identifier '_FindHandle'

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(332) : warning C4229: anachronism used : modifiers on data are ignored

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(332) : error C2491: '_wfindnext64i32' : definition of dllimport data not allowed

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(332) : error C2059: syntax error : ')'

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(333) : error C2146: syntax error : missing ')' before identifier '_FindHandle'

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(333) : warning C4229: anachronism used : modifiers on data are ignored

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(333) : error C2491: '_wfindnext64' : definition of dllimport data not allowed

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(333) : error C2059: syntax error : ')'

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(367) : error C2143: syntax error : missing ';' before '__cdecl'

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(367) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(367) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(368) : error C2143: syntax error : missing ';' before '__cdecl'

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(368) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(368) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(369) : error C2143: syntax error : missing ';' before '__cdecl'

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(369) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(369) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(370) : error C2143: syntax error : missing ';' before '__cdecl'

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(370) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(370) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(371) : error C2143: syntax error : missing ';' before '__cdecl'

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(371) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(371) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(372) : error C2143: syntax error : missing ';' before '__cdecl'

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(372) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(373) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(374) : error C2143: syntax error : missing ';' before '__cdecl'

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(374) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(374) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(375) : error C2143: syntax error : missing ';' before '__cdecl'

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(375) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(376) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(377) : error C2143: syntax error : missing ';' before '__cdecl'

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(377) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(377) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(378) : error C2143: syntax error : missing ';' before '__cdecl'

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(378) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(378) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(379) : error C2143: syntax error : missing ';' before '__cdecl'

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(379) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(379) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(380) : error C2143: syntax error : missing ';' before '__cdecl'

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(380) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(380) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(381) : error C2143: syntax error : missing ';' before '__cdecl'

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(381) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(381) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(382) : error C2143: syntax error : missing ';' before '__cdecl'

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(382) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(383) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(384) : error C2143: syntax error : missing ';' before '__cdecl'

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(384) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(384) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(385) : error C2143: syntax error : missing ';' before '__cdecl'

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(385) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\wchar.h(386) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\io.h(206) : error C2143: syntax error : missing ';' before '__cdecl'

c:\programmi\microsoft visual studio 8\vc\include\io.h(206) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\io.h(206) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\io.h(207) : error C2146: syntax error : missing ')' before identifier '_FindHandle'

c:\programmi\microsoft visual studio 8\vc\include\io.h(207) : warning C4229: anachronism used : modifiers on data are ignored

c:\programmi\microsoft visual studio 8\vc\include\io.h(207) : error C2491: '_findnext32' : definition of dllimport data not allowed

c:\programmi\microsoft visual studio 8\vc\include\io.h(207) : error C2059: syntax error : ')'

c:\programmi\microsoft visual studio 8\vc\include\io.h(208) : error C2146: syntax error : missing ')' before identifier '_FindHandle'

c:\programmi\microsoft visual studio 8\vc\include\io.h(208) : warning C4229: anachronism used : modifiers on data are ignored

c:\programmi\microsoft visual studio 8\vc\include\io.h(208) : error C2491: '_findclose' : definition of dllimport data not allowed

c:\programmi\microsoft visual studio 8\vc\include\io.h(208) : error C2059: syntax error : ')'

c:\programmi\microsoft visual studio 8\vc\include\io.h(236) : error C2143: syntax error : missing ';' before '__cdecl'

c:\programmi\microsoft visual studio 8\vc\include\io.h(236) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\io.h(236) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\io.h(237) : error C2143: syntax error : missing ';' before '__cdecl'

c:\programmi\microsoft visual studio 8\vc\include\io.h(237) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\io.h(237) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\io.h(238) : error C2143: syntax error : missing ';' before '__cdecl'

c:\programmi\microsoft visual studio 8\vc\include\io.h(238) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\io.h(238) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\io.h(239) : error C2146: syntax error : missing ')' before identifier '_FindHandle'

c:\programmi\microsoft visual studio 8\vc\include\io.h(239) : warning C4229: anachronism used : modifiers on data are ignored

c:\programmi\microsoft visual studio 8\vc\include\io.h(239) : error C2491: '_findnext32i64' : definition of dllimport data not allowed

c:\programmi\microsoft visual studio 8\vc\include\io.h(239) : error C2059: syntax error : ')'

c:\programmi\microsoft visual studio 8\vc\include\io.h(240) : error C2146: syntax error : missing ')' before identifier '_FindHandle'

c:\programmi\microsoft visual studio 8\vc\include\io.h(240) : warning C4229: anachronism used : modifiers on data are ignored

c:\programmi\microsoft visual studio 8\vc\include\io.h(240) : error C2491: '_findnext64i32' : definition of dllimport data not allowed

c:\programmi\microsoft visual studio 8\vc\include\io.h(240) : error C2059: syntax error : ')'

c:\programmi\microsoft visual studio 8\vc\include\io.h(241) : error C2146: syntax error : missing ')' before identifier '_FindHandle'

c:\programmi\microsoft visual studio 8\vc\include\io.h(241) : warning C4229: anachronism used : modifiers on data are ignored

c:\programmi\microsoft visual studio 8\vc\include\io.h(241) : error C2491: '_findnext64' : definition of dllimport data not allowed

c:\programmi\microsoft visual studio 8\vc\include\io.h(241) : error C2059: syntax error : ')'

c:\programmi\microsoft visual studio 8\vc\include\io.h(306) : error C2143: syntax error : missing ';' before '__cdecl'

c:\programmi\microsoft visual studio 8\vc\include\io.h(306) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\io.h(306) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\programmi\microsoft visual studio 8\vc\include\io.h(307) : error C2146: syntax error : missing ')' before identifier '_OSFileHandle'

c:\programmi\microsoft visual studio 8\vc\include\io.h(307) : warning C4229: anachronism used : modifiers on data are ignored

c:\programmi\microsoft visual studio 8\vc\include\io.h(307) : error C2491: '_open_osfhandle' : definition of dllimport data not allowed

c:\programmi\microsoft visual studio 8\vc\include\io.h(307) : error C2059: syntax error : ')'

c:\programmi\gnu telephony\cape framework\include\ccrtp\queuebase.h(158) : warning C4251: 'ost::AppDataUnit:Big Smileatablock' : class 'ost:Stick out tongueointer<T>' needs to have dll-interface to be used by clients of class 'ost::AppDataUnit'

with

[

T=const ost::IncomingRTPPkt

]

c:\programmi\gnu telephony\cape framework\include\ccrtp\oqueue.h(71) : warning C4251: 'ost:Big SmileestinationListHandler:Big SmileestList' : class 'std::list<_Ty>' needs to have dll-interface to be used by clients of class 'ost:Big SmileestinationListHandler'

with

[

_Ty=ost:Big SmileestinationListHandler::TransportAddress *

]

c:\documents and settings\utente1\documenti\universita\laurea specialistica\pdcm\project\mezzoserver\mezzoserver\stdint.h(80) : error C2378: 'intptr_t' : redefinition; symbol cannot be overloaded with a typedef

c:\programmi\microsoft visual studio 8\vc\include\malloc.h(180) : see declaration of 'intptr_t'

c:\documents and settings\utente1\documenti\universita\laurea specialistica\pdcm\project\mezzoserver\mezzoserver\rational.h(49) : warning C4244: 'return' : conversion from 'const int64_t' to 'int', possible loss of data

c:\documents and settings\utente1\documenti\universita\laurea specialistica\pdcm\project\mezzoserver\mezzoserver\main.cpp(161) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data

c:\documents and settings\utente1\documenti\universita\laurea specialistica\pdcm\project\mezzoserver\mezzoserver\main.cpp(178) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data

Someone can help me



Re: Visual C++ General Trying to compile common c++

Ramkrishna Pawar

Looks like you have some old C code, where return type is not mentioned and compiler assumes it to be int.

Can you post the code in question, along with the information of line no (which error occured where).






Re: Visual C++ General Trying to compile common c++

Simple Samples

Errors C2143 and C4430 are usually secondary errors in the sense that the real error is different. Usually those errors can be ignored, but usually there is another error that is meaningful. Look at the code on the line (such as line 180) and the line preceding it and possibly the line following it for problems. If you can figure out one occurance then you are likely to understand the problem for most others too for which the same pattern of errors are generated. If you can't figure out the problems then post the source code associated with the error but I think it is much more manageable to limit each thread to one line of code or one combination of error messages. If one thread is used to discuss many different and significantly unrelated errors then it can get confusing and cause a large discussion in which many posts are unrelated to others.




Re: Visual C++ General Trying to compile common c++

PaoloMassignan

This is the full code of main..

It is a part of an universitary project, but i'm the only one who can't compile it. Maybe Is it a configuration problem

#include <stdio.h>

#include <string.h>

#include <ccrtp/rtp.h>

extern "C" {

#define __STDC_CONSTANT_MACROS

#define __STDC_LIMIT_MACROS

#include "avformat.h"

#include "avcodec.h"

#include "swscale.h"

}

#ifdef CCXX_NAMESPACES

using namespace ost;

using namespace std;

#endif

#include <time.h>

int main(int argc, char **argv)

{

// compressione - decompressione

CodecID codec = CODEC_ID_H264; // codec da utilizzare

AVCodec *pDec; // ID decodificatore

AVCodecContext *pDecCtx; // decodificatore

AVFrame *frameDecYUV, *frameDecBGR; // contengono un fotogramma

int size, sizeYUV, sizeBGR;

SwsContext *yuv420p_to_bgr24; // contesti per la conversione YUV<->RGB

// int outbuf_size, buf_size;

uint8_t *buf; // buffer per i frame compressi

int frame_finished, err;

int totale_byte;

int i;

int width, height;

AVOutputFormat *pOutFmt;

AVFormatContext *pFmtCtx;

AVStream *pVideoStream;

char *filename;

// filmato di input

char videoInput[] = "Video";

if( argc != 4 )

{

printf( "USO: %s ip porta nome_file_output\n\n", argv[0] );

return(50);

}

//**********************************

width = 320;

height = 240;

//**********************************

// libavcodec

avcodec_init();

av_register_all();

// decodificatore

pDec = avcodec_find_decoder( codec);

pDecCtx = avcodec_alloc_context();

pDecCtx->width = width;

pDecCtx->height = height;

pDecCtx->time_base.num = 1;

pDecCtx->time_base.den = 25;

pDecCtx->pix_fmt = PIX_FMT_YUV420P;

if( avcodec_open(pDecCtx, pDec) == 0 )

printf("Decoder aperto\n");

else

{

printf("ERRORE: apertura Decoder\n");

return(300);

}

// prepara i frame

frameDecYUV = avcodec_alloc_frame();

frameDecBGR = avcodec_alloc_frame();

size = width * height;

sizeYUV = (size*3)/2;

sizeBGR = size*3;

// contesti da utilizzare nel processo di conversione tra BGR e YUV

yuv420p_to_bgr24 = sws_getContext(width, height, PIX_FMT_YUV420P, width, height, PIX_FMT_BGR24, 0, NULL, NULL, NULL);

//buffer per la compressione

// buf_size = 100000;

// buf = (uint8_t*) malloc( buf_size);

// Necessario per scrivere il file di output

filename = argv[3];

pOutFmt = guess_format("avi", NULL, NULL);

pFmtCtx = av_alloc_format_context();

pFmtCtx->oformat = pOutFmt;

sprintf(pFmtCtx->filename, filename);

pVideoStream = av_new_stream(pFmtCtx, 0);

memcpy(pVideoStream->codec, pDecCtx, sizeof(AVCodecContext));

pVideoStream->codec->flags |= CODEC_FLAG_GLOBAL_HEADER;

av_set_parameters(pFmtCtx, NULL);

dump_format(pFmtCtx, 0, filename, 1);

if( !(pFmtCtx->flags & AVFMT_NOFILE) )

{

if( url_fopen(&pFmtCtx->pb, filename, URL_WRONLY) <0 )

printf("Impossibile aprire il file");

}

i = av_write_header(pFmtCtx);

// RTP

RTPSession *rtpSes;

InetHostAddress hostaddr;

int port;

hostaddr = argv[1];

port = atoi(argv[2]);

rtpSes = new RTPSession(hostaddr, port);

rtpSes->setExpireTimeout(10000000);

rtpSes->setPayloadFormat( DynamicPayloadFormat(100, 1000) );

// rtpSes->setSessionBandwidth(1000000);

rtpSes->startRunning();

bool b = rtpSes->isActive();

printf("** Per uscire premi ESC con il focus sulla finestra video **\n");

printf("\nIn ascolto su : %s:%d\n\n", hostaddr.getHostname(), port);

totale_byte = 0;

for(;Wink

{

const AppDataUnit *adu = NULL;

// legge un tot di fotogrammi, li comprime e li decomprime

adu = rtpSes->getData(rtpSes->getFirstTimestamp());

while ( NULL == adu )

{

adu = rtpSes->getData(rtpSes->getFirstTimestamp());

printf(".");

}

// acquisisce l'immagine

printf("PKT: %d payload, da %s", adu->getSize(), adu->getSource().getNetworkAddress().getHostname() );

// decodifica

err = avcodec_decode_video(pDecCtx, frameDecYUV, &frame_finished, (uint8_t*)adu->getData(), adu->getSize());

if( ( frame_finished > 0 ) && ( err > 0 ) )

{

// converte da YUV a BGR

// sws_scale(yuv420p_to_bgr24, frameDecYUV->data, frameDecYUV->linesize, 0, imgDec->height, frameDecBGR->data, frameDecBGR->linesize);

// cvShowImage(videoInput, imgDec);

printf(" - usati: %d\n", err);

AVPacket pkt;

av_init_packet(&pkt);

pkt.pts = i;

if( pDecCtx->coded_frame->key_frame )

pkt.flags |= PKT_FLAG_KEY;

pkt.stream_index = 0;

pkt.data = (uint8_t*)adu->getData();

pkt.size = adu->getSize();

err = av_write_frame(pFmtCtx, &pkt);

}

else

printf(" - SKIP %d\n", err);

// aspetta un po' tra un fotogramma e l'altro e da' il tempo a opencv

// di disegnare la finestra

// if( cvWaitKey(15) == 27 )

// goto fine;

}

fine:

av_write_trailer(pFmtCtx);

if( !( pFmtCtx->flags & AVFMT_NOFILE ) )

{

url_fclose(&pFmtCtx->pb);

}

av_free(pVideoStream);

av_free(pFmtCtx);

// cvReleaseImage(&imgDec);

delete rtpSes;

avcodec_close(pDecCtx);

av_free(pDecCtx);

av_free(frameDecBGR);

av_free(frameDecYUV);

return(0);

}





Re: Visual C++ General Trying to compile common c++

Simple Samples

Change:

Code Snippet
#include <STRING.H>

To:

Code Snippet
#include <STRING>

I don't know if that will help but it might.






Re: Visual C++ General Trying to compile common c++

PaoloMassignan

Thank you.. but it still don't work



Re: Visual C++ General Trying to compile common c++

Simple Samples

It don't work to say don't work. You need to be more specific. Are you totally sure that you are getting the same error messages and that you are getting all of the error messages you got previously




Re: Visual C++ General Trying to compile common c++

PaoloMassignan

Sorry. There are the same errors..