tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Fw: Using TCC with dll created by g++ (MINGW)


From: grischka
Subject: Re: [Tinycc-devel] Fw: Using TCC with dll created by g++ (MINGW)
Date: Sun, 19 Feb 2012 19:55:34 +0100
User-agent: Thunderbird 2.0.0.24 (Windows/20100228)

address@hidden wrote:
Thanks for the answer. I think using dedicated include file that is included 
after the
opencv stuff and have definition like this is a working solution.
Is this only needed for Windows  when using optimizing on the g++.
If only needed on Windows, i would include #if define WIN32 || defined WIN64 .
Are there other issues that need to be addressed in the openCV/window contest 
like
floating point things or SSE things. For now, i donĀ“t use the SSE optimized 
MinGW, but
i want switch to it later. I really think, that if TCC can be used on openCV it 
will be used
by a lot of people.

The recipe I gave is meant mostly as TODO for tcc development, that
is for someone who might eventually want to implement this missing
feature.

How far you (as user) want to go to workaround this in order to still
use tcc with your code is solely up to you.  I cannot help you there.

--- grischka

#ifdef __TINYC__
register long long _val_;
#define cvGetSize(img) (_val_=((long long(*)(IplImage*))cvGetSize)(img),_val_)
#define cvCreateImage(x,y,z) ((IplImage*(*)(long long , int, 
int))cvCreateImage)( x,y,z)
#endif




reply via email to

[Prev in Thread] Current Thread [Next in Thread]