Oh. I must've missed that part. Yes I'm not used to programming on windows, so I guess I took it for granted that ffmpeg would work... Now it makes sense. Back to the drawing board I guess. Much...
Type: Posts; User: starshiptrooper
Oh. I must've missed that part. Yes I'm not used to programming on windows, so I guess I took it for granted that ffmpeg would work... Now it makes sense. Back to the drawing board I guess. Much...
I'm using Windows 7 (there is part of the code that is neither ffmpeg related, nor mine, that I'm having to integrate with, which is why, earlier, just disabling PCH for the entire project wasn't a...
Oh it's not mine at all. I've got my C++ code that's trying to use certain functions from libav. I found some example code online:
FFmpeg: libavformat/output-example.c Source File
All I did was...
That makes perfect sense. I realized I was including iostream, which is a c++ library. That took away the cmath errors. Now I'm getting other errors, but they're with a different library I'm working...
Found out about the relationship between cmath and math.h (they are basically, in a way, the same. No such thing as cmath.h)
This raises many questions about why I am getting all those syntax...
Yes, I saw that about Yc and Yu. I finally figured out that there's no disabling pch option for .h files is what I was doing wrong. So I was able to disable it on the .c file. Now I get new errors,...
Actually, that wasn't for what I thought it was. Yc[filename] is something else...
Nevermind, I did a bit more research and found out about the Yc[filename] option. Let me try it out. Thanks.
I tried, but when properties comes up, there are only the following choices:
Excluded from Build: (yes or no)
Item Type:
and the only category available is Configuration Properties, with...
The c code is in separage files, but same project. How do I disable PCH for individual files?
As I said, it's not really a choice because it's part of a larger project that uses the precompiled header. Some of the other code was written by somebody else.
That was the first thing I tried. But it gave me this error, which now I will post verbatim:
precompiled header file is from a previous version of the compiler, or the precompiled header is...
Problem now seems to be that I don't know hot to add a .c source file to my visual c++ project (which is using precompiled headers. It's part of a larger project so I better not fool with that). Only...
Oh, that makes sense. Thanks for the link. Yeah, it's not really my code, I got it from a website and was trying it out. I guess for their purposes it was static, but it makes sense that it wouldn't...
This is my exact function header on my .h file:
static void video_decode(const char *outfile, const char *infile);
and on my .c file:
Oh, it's the other way around, my C++ file has to access C functions, all written by me. It's a lot of code, though. Give me a minute and I'll get a paraphrased version posted.
But the error is:
...
Just to be clear, that would be my C++ header file, right? If so, then basically do you need to prototype the functions again, but in an extern "C" block?
Also, yeah I was wrong. I just tried and...
I am using Visual C++ 2010 express, by the way, which kinda complicates things, because I can't just include a .c file in my project...
I've been having issues with this lately. I have written a .h file and a .c file, both with c code. I tried to include them in my project by following this tutorial:
[32] How to mix C and C++...
Oh, ok, compression/decompression. That makes sense for my purposes, since I'm trying to compress to h263 and possibly decompress back to mpeg/avi.
Also, to clarify, I have a method which uses libavcodec.
However, avcodec_find_decoder(CODEC_ID_H263) always returns null, however, which is what leads me to believe that despite having...
Yes, I have. Just didn't get it. And still kinda don't. I think my brain is stuck on wanting to think it is something other than it actually isn't and it's just confusing me. I'll look into...
Hello, again, everyone.
After searching and searching and reading a bit on a few websites and the book "Voice and Data Communications Handbook" by Regis J. Bates and Donald W. Gregory, I've...
Of course! I just double checked and that was the difference. The full version of Visual Studio 2010 does have the 64 bit compiler. VC++ express only comes with x86. Thanks!
Correction: I am not even entire sure what this Visual C++ express 2010 version is. I thought it was x64 but I went back to the page I got it from (Visual C++ 2010 Express | Microsoft Visual Studio)...