User forums > Using Code::Blocks
.obj to .exe using CodeBlocks
finston:
Tim, thank you for your reply
File_Export is first in my Sip.h file, six or so lines from the end, as:
BOOL File_Export( short FAR *, unsigned short, unsigned short,
unsigned short, LPSTR );
and then, as I understand it defined in my SIPFILE.c as:
BOOL File_Export( short FAR *Data, // Pointer to data.
unsigned short nXinc, // X axis increment.
unsigned short nyPoints, // Number of y points.
unsigned short nyVals, // Number of y values per point.
LPSTR lpstrFileName ) // Pointer to file name.
It is then used in my sipwnd.c file at lines :
line 248, 262 and 272 (the three lines giving the errors, typically C:\2011sip\SIP\sipwnd.c|248|undefined reference to `File_Export'|
case 2: // If file data present...
if( File_Export(( short FAR * )( lpstrFileData +
sizeof( t_fhead )),
( unsigned short )
(( t_fhead FAR * )lpstrFileData )->xinc,
( unsigned short )
(( flen - sizeof( t_fhead ))
/ ( 2 * nDatDiv )),
( unsigned short )nDatDiv,
( LPSTR )szFqFileName ))
EnableMenuItem( hMenu, IDM_EXPORT, MF_DISABLED | MF_GRAYED);
break;
case 3: // If real time data present...
if( File_Export(( short FAR * )RxData,
( unsigned short )rtint_seconds,
( unsigned short )rt_npoints,
( unsigned short )nDatDiv,
szFqFileName ))
EnableMenuItem( hMenu, IDM_EXPORT, MF_DISABLED | MF_GRAYED);
break;
case 4: // If stored data present...
if( File_Export(( short FAR * )RxData,
( unsigned short )stint_seconds,
( unsigned short )st_npoints,
( unsigned short )nDatDiv,
szFqFileName ))
EnableMenuItem( hMenu, IDM_EXPORT, MF_DISABLED | MF_GRAYED );
break;
}// Switch;
}
return 0;
Thanks
Finston
Jenna:
We have left the scope of this forum by far.
The questions are no longer related to C::B !
This violates our forum rules !
Topic locked !
Navigation
[0] Message Index
[*] Previous page
Go to full version