×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

BCpp-> ConditionalMacros.h: unknown compiler

BCpp-> ConditionalMacros.h: unknown compiler

BCpp-> ConditionalMacros.h: unknown compiler

(OP)
I want to use Borland C++ Builder 6.0 and QuickTime SDK to create 'mov' file.
When I include header 'movies.h', the compiler shows error directive:

[C++ Fatal Error] ConditionalMacros.h(1348): F1003 Error directive: ConditionalMacros.h: unknown compiler

The conclusion is: header 'ConditionalMacros.h' does not contain the macros for Borland Builder implementation (there are only VC++ imlenetations). I think it is possible to write code for QT files in BCB enviroment.
What to do with it? Please, help!
Thanks, in advance.

RE: BCpp-> ConditionalMacros.h: unknown compiler

I have the same problem. Do somebody know the solution?

RE: BCpp-> ConditionalMacros.h: unknown compiler

(OP)
Witaj 'mojelogowanie'

Pisz? po polsku, bo widz? po Twoim nicku, ?e jeste? równie? polakiem.
Pó? roku temu wywo?a?em ten temat i nikt mi nie odpowiedzia?, ale jak si? cz?owiek uprze to dojdzie jak ma by?.

A teraz do rzeczy

Otwórz "ConditionalMacros.h" i wstaw tam nast?puj?cy fragment kodu:

#if defined(__BORLANDC__) //__BORLANDC__=1376 - wersja kompilatora Builder6
      #define TARGET_CPU_PPC              0
      #define TARGET_CPU_68K              0
      #define TARGET_CPU_X86              1
      #define TARGET_CPU_MIPS             0
      #define TARGET_CPU_SPARC            0
      #define TARGET_CPU_ALPHA            0
      #define TARGET_OS_MAC               0
      #define TARGET_OS_WIN32             1
      #define TARGET_OS_UNIX              0
      #define TARGET_RT_LITTLE_ENDIAN     1
      #define TARGET_RT_BIG_ENDIAN        0
      #define PRAGMA_IMPORT               0
      #define PRAGMA_STRUCT_ALIGN         0
      #define PRAGMA_ONCE                 0
      #define PRAGMA_STRUCT_PACK          1
      #define PRAGMA_STRUCT_PACKPUSH      1
      #define PRAGMA_ENUM_PACK            0
      #define PRAGMA_ENUM_ALWAYSINT       0
      #define PRAGMA_ENUM_OPTIONS         0
      #define FOUR_CHAR_CODE(x)           (x)
      #define TYPE_EXTENDED               0
      #define TYPE_LONGLONG               1   
      #define LONGLONG_TYPENAME           __int64
#define LONGLONG_SIGNED_MAX    (9223372036854775807i64)
#define LONGLONG_SIGNED_MIN    (-9223372036854775807i64 - 1)
#define LONGLONG_UNSIGNED_MAX  (0xffffffffffffffffui64)

#define TYPE_BOOL 1 //ZK

      #define FUNCTION_PASCAL             0
      #ifndef FUNCTION_DECLSPEC               
        #define FUNCTION_DECLSPEC         0   
      #endif
      #ifndef FUNCTION_WIN32CC                
        #define FUNCTION_WIN32CC          1
      #endif
      #undef pascal
      #define pascal

#define Point     QTPoint //ZK
#define Rect      QTRect //ZK
#define Boolean   QTBoolean //ZK
#define DateDelta QTDateDelta //ZK
#define Byte      QTByte //ZK
#define WideChar  QTWideChar //ZK

Koniec

Znaczniki '//ZK' to s? moje dostawione linijki, bo po kompilacji dostanie? inaczej b??dy, ?e niejednoznaczno?? pomi?dzy funkcjami itd. ('Ambiguity').

Mam nadziej?, ?e to rozwi??e Twoje problemy. U mnie filmy 'mov' dzia?aj? bez zarzutu. Mam rownie? nadzieje, ?e to jest wszystko, bo pó? roku to du?o czasu i mog?o mi co? umkn?? a nie wszystko pami?tam cho? walczy?em z tym d?ugo.

ZKPL

RE: BCpp-> ConditionalMacros.h: unknown compiler

Thanks, its working properly after one small correction (for QuickTimeSDK 7):

first line of the code should be: :#elif defined... not #if..
PS. Dziekuje bardzo. Sam doszedles do tego zestawu dyrektyw czy znalazles w sieci ? (gdzie?)

RE: BCpp-> ConditionalMacros.h: unknown compiler

(OP)
Ciesze sie, ze dziala.

Najpierw sam probowalem, bo zestaw dyrektyw jest bardzo podobny dla wszystkich kompilatorow i tak tez probowalem robic dla buildera, ale wciaz nie moglem przekompilowac, bo mialem bledy o niejednoznacznosci funkcji a rozwiazanie jak widzisz bylo bardzo proste ('#define Point  QTPoint' itd.). Myslalem wiec, ze nie tedy droga. I wtedy znalazlem potwierdzenie w sieci oraz jak przejsc te bledy, ale teraz juz nie wiem gdzie to znalazlem. To bylo spontaniczne przegladanie strona za strona.

Pozdrawiam
Na razie

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close