How to get output Screen
-
Now im trying both linux and windows, but both environment i am getting same issue, can you suggest for windows.
-
@Arasu According to this there is no official port for Windows. Check Qt_creator_windows_debugging for windows. Sorry but I'm not much into Windows.
-
Hello Friend!
Now i am working windows platform, got this error
..\ecg12i_backup\PatientList.cpp: In function 'void on_Patient_Info_List_Screen_show(PATIENT_LIST*)':
..\ecg12i_backup\PatientList.cpp:93:47: error: 'alphasort' was not declared in this scope
n = scandir(PATIENTINFODIRLOC, &namelist, 0, alphasort); //It scans for files in Directory PATIENTINFODIRLOC and put it in namelist
^
..\ecg12i_backup\PatientList.cpp:93:56: error: 'scandir' cannot be used as a function
n = scandir(PATIENTINFODIRLOC, &namelist, 0, alphasort); //It scans for files in Directory PATIENTINFODIRLOC and put it in namelist
^
..\ecg12i_backup\PatientList.cpp:102:40: error: 'rindex' cannot be used as a function
ptr = rindex(namelist[n]->d_name, '.'); -
Hello Friend!
Now i am working windows platform, got this error
..\ecg12i_backup\PatientList.cpp: In function 'void on_Patient_Info_List_Screen_show(PATIENT_LIST*)':
..\ecg12i_backup\PatientList.cpp:93:47: error: 'alphasort' was not declared in this scope
n = scandir(PATIENTINFODIRLOC, &namelist, 0, alphasort); //It scans for files in Directory PATIENTINFODIRLOC and put it in namelist
^
..\ecg12i_backup\PatientList.cpp:93:56: error: 'scandir' cannot be used as a function
n = scandir(PATIENTINFODIRLOC, &namelist, 0, alphasort); //It scans for files in Directory PATIENTINFODIRLOC and put it in namelist
^
..\ecg12i_backup\PatientList.cpp:102:40: error: 'rindex' cannot be used as a function
ptr = rindex(namelist[n]->d_name, '.'); -
@Arasu I think you must start from Qt basics. Qt Creator is not a compiler but an IDE.
Please first check whether the code can be easily compiled on Windows. What are the required dependencies ? How much effort it would require for compiling ? etc..
If not easy then better to compile it on Linux as the first hitch (scandir
) you came across can easliy be solved on Linux. -
Hi,
the standard compiler for Linux is
gcc
and there is a porting of it for WindowsMinGW
.
But this doesn't mean you MUST use it (you're free to choose different compiler for each platform).
In example in my company release the same product for Windows, Linux and OSX and we use different compiler- Windows (Visual Studio)
- Linux (gcc)
- OS X (clang)