Hi Pritpal,

        Thanks very much for your valuable info it was right to the point.
Nonetheless, I must be doing something wrong because after the change you
suggested, the file compiles ok but I still keep getting the "unresolved
external _HB_FUN_" when I link

        This is an example of what I did with all the C call functions:

CLIPPER unload( ) 
{
  int i, k ;
  char j, str[ 241 ];

  for( i = 0; i < 240; i++ )
    str[ i ] = '0';

  for( i = 0; i < op_tot; i++ )
    for( j = 0; j < 40; j += 2 )
      for( k = 0; k < menu[ i ].so_tot; k++ ) {
        if ( menu[ i ].so_abs[ k ] == j / 2 ) {
          str[ i * 40 + j + 0 ] = '0' + ( ( menu[ i ].so_let[ k ] & 2 ) >> 1
) ;
          str[ i * 40 + j + 1 ] = '0' + ( menu[ i ].so_let[ k ] & 1 ) ;
        }
      }
  _retc( str );
}


HB_FUNC( unload ) 
{
  int i, k ;
  char j, str[ 241 ];

  for( i = 0; i < 240; i++ )
    str[ i ] = '0';

  for( i = 0; i < op_tot; i++ )
    for( j = 0; j < 40; j += 2 )
      for( k = 0; k < menu[ i ].so_tot; k++ ) {
        if ( menu[ i ].so_abs[ k ] == j / 2 ) {
          str[ i * 40 + j + 0 ] = '0' + ( ( menu[ i ].so_let[ k ] & 2 ) >> 1
) ;
          str[ i * 40 + j + 1 ] = '0' + ( menu[ i ].so_let[ k ] & 1 ) ;
        }
      }
  _retc( str );
}


Please Advice,
Moises Romero



-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Pritpal Bedi
Sent: Monday, July 27, 2009 6:09 PM
To: [email protected]
Subject: Re: [Harbour] Unresolved External _HB_FUN_


Hi


Moises Romero wrote:
> 
>             I used to make C calls from clipper to various functions I
> developed with turbo C++ 2.0.
> 
>             After I compiled the prg's and the .c file all together with
> Borland c++ 5.51 I am getting "unresolved external _HB_FUN_" for all the
> functions I had written in c++ 2.0
> 
> All functions in C++ are type CLIPPER.
> 
>             These are the compilers switches I am using:
> BCC32 -O2 -d -Vs -c -f- -X -Ic:\HBC\INCLUDE
> Harbour -l -m -n -q -ic:\HBC\Include
> 

CLIPPER MyFunc()
{
}

=>

HB_FUNC( MYFUNC )
{
}

Regards
Pritpal Bedi
-- 
View this message in context:
http://www.nabble.com/Unresolved-External-_HB_FUN_-tp24688825p24689164.html
Sent from the Harbour - Dev mailing list archive at Nabble.com.

_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to