|
compiling FPGA chip design software designed for windows (visual c++) in linux
hi all
we are a team of two final yr engg. students, nit jaipur, working on porting the router module of the GOSPL (generalized open sourcr programming logic) EDA chip design software designed for windows in VISUAL C++ to LINUX platform.
we have compiled the main program through command line using gcc compiler and it is giving the following errors:
1. ERRONOUS CODE: m_pStorageHeader=(CStorageHeader*)(m_pDataFile->getBaseAddress());m_pStorageHeader=(CStorageHeader*)(m_pDataFile->getBaseAddress());
ERROR: /usr/include/IDB/ICHOROUS/include/VMM/StorageManager/CMetaInfoReader.h: In
member function `void CMetaInfoReader<super>::MyService()':
/usr/include/IDB/ICHOROUS/include/VMM/StorageManager/CMetaInfoReader.h:11: parse
error before `;' token
2. THE FILE "WINDOWS.H" has been used in one program and a variable of datatype HANDLE has been defined. so the error is:
/usr/include/IDB/ICHOROUS/include/VMM/OSInteractor/CFile.h:17: 'HANDLE' is used
as a type, but is not defined as a type.
we are unable to find the definition of handle in windows.h. can sombdy tell a replacement for windows.h.....or can we export it to linux?? ...how???
3. CODE: template <class DataType> void* allocatespace (size_t sz,CPersists * check)
{
void* p= findStorage()->malloc(sz,(DataType::self_class).getCid());
setSize(p,sz);
return p;
}
ERROR: /usr/include/IDB/ICHOROUS/include/VMM/Stl/allocator.h:41: declaration of `class
DataType'
4. CODE: persistentvector(_It F,_It L):vector< _Ty, _A >(F, L) {
}
ERROR: /usr/include/IDB/ICHOROUS/include/VMM/Stl/persistentvector.h:52: parse error
before `F'
5. also the file #include <xtree> is not present in linux...any replaccement??
6. CODE : ~persistentvector(){
//~vector()
}
ERROR: /usr/include/IDB/ICHOROUS/include/VMM/Stl/persistentvector.h:55: ISO C++
forbids defining types within return type
/usr/include/IDB/ICHOROUS/include/VMM/Stl/persistentvector.h:55: destructors
must be member functions
/usr/include/IDB/ICHOROUS/include/VMM/Stl/persistentvector.h:55: return type
specification for destructor invalid
/usr/include/IDB/ICHOROUS/include/VMM/Stl/persistentvector.h:55: default
template arguments may not be used in function templates
/usr/include/IDB/ICHOROUS/include/VMM/Stl/persistentvector.h:55: declaration of
template `template<class _Ty, class _A> void persistentvector()'
7. CODE: _Destroy(_S, _Last);
ERROR: /usr/include/IDB/ICHOROUS/include/VMM/Stl/persistentvector.h:69: `_S' was not
declared in this scope
/usr/include/IDB/ICHOROUS/include/VMM/Stl/persistentvector.h:69: `_Last' was
not declared in this scope
/usr/include/IDB/ICHOROUS/include/VMM/Stl/persistentvector.h:69: initializer
list being treated as compound expression
WHAT DO WE MEAN BY SCOPE HERE???
these are some errors which come when we compile the main program of this module on command line.
ALSO WE WANT TO KNOW WHETHER USING THE CMD LINE IS THE RIGHT APPROACH OR SHUD WE USE KDEVELOP OR WINE OR SUMTHG LIKE THT ...N HOW??
will be really grateful if someone replies...
in a fix..
garima
pooja
|