Compiling over CIFS

I have a QNX Neutrino workstation and a Windows 2000 (NTFS) workstation
connected via a network using CIFS (samba) for development purposes. The
CIFS connection seems to work fine in that I can successfully mount the
Windows folder on QNX and access files. However I can’t compile source code
from withing QNX when the source files reside on a Windows folder.

For example, I have a project that compiles fine when it resides in a local
QNX folder, but if I copy the project to a Windows folder the compiler
generates some ‘nonsensical’ error messages, such as "syntax error before
‘(’ ". In order to confirm that that project had been copied completely I
created a new folder locally in QNX and copied all the files from my Windows
folder into the new QNX folder and the project compiled with no error
messages.

I have also notice that the root superuser in QNX looses permission over
some of the files in Windows.

Any help would be greatly appreciated.

More info. My main file has the following declarations

1 #include “adc.hpp”
2 #include “dac.hpp”
3 #include “encoder.hpp”
4
5 ADC gadc(ADC_ADDR);
6 DAC gdac(DAC_ADDR);
7 ENCODER genc();

the “Syntax error before ‘(’” error would be give on lines 6, 7 not 5,
however, if I switched the #includes to be in a different order for instance

1 #include “dac.hpp”
2 #include “adc.hpp”
3 #include “encoder.hpp”

then the error would be give on lines 5, 7 not 6.

Knowing this I opened the “adc.hpp” which is as follows:

1 #ifndef _ADDAC_H
2 #define _ADDAC_H
3
4 class ADC {
5
6 };
7 #endif

If I comment out lines 1, 2 and 7 for all *.hpp the error goes away but then
I get redefinition errors. So something about the #ifndef is not allowing
the subsequent #includes to be compiled. Why?

Any help would be great.



“Julio Ameritech” <jjsantos@ameritech.net> wrote in message
news:aeiekr$881$2@inn.qnx.com

I have a QNX Neutrino workstation and a Windows 2000 (NTFS) workstation
connected via a network using CIFS (samba) for development purposes. The
CIFS connection seems to work fine in that I can successfully mount the
Windows folder on QNX and access files. However I can’t compile source
code
from withing QNX when the source files reside on a Windows folder.

For example, I have a project that compiles fine when it resides in a
local
QNX folder, but if I copy the project to a Windows folder the compiler
generates some ‘nonsensical’ error messages, such as "syntax error before
‘(’ ". In order to confirm that that project had been copied completely I
created a new folder locally in QNX and copied all the files from my
Windows
folder into the new QNX folder and the project compiled with no error
messages.

I have also notice that the root superuser in QNX looses permission over
some of the files in Windows.

Any help would be greatly appreciated.
\

On Sun, 16 Jun 2002 13:52:38 -0500, “Julio Ameritech”
<jjsantos@ameritech.net> wrote:

It seems your “local” and “remote” compile environments (e.g.,
search/include paths) are not similar. Does “local” mean a $HOME
folder or any folder except the Windows one? How do you start the
compile process? What if you compile two separate files, one with
“dac”, and the other with “adc” only?

Another guess would be that something happens with newlines or
with the last line (eof) when samba serves a file to the compiler. How
did you copy the files between QNX and Windows? What if you put the
contents of .hpp files (with ifdefs) directly to the main file?

ako

More info. My main file has the following declarations

1 #include “adc.hpp”
2 #include “dac.hpp”
3 #include “encoder.hpp”
4
5 ADC gadc(ADC_ADDR);
6 DAC gdac(DAC_ADDR);
7 ENCODER genc();

the “Syntax error before ‘(’” error would be give on lines 6, 7 not 5,
however, if I switched the #includes to be in a different order for instance

1 #include “dac.hpp”
2 #include “adc.hpp”
3 #include “encoder.hpp”

then the error would be give on lines 5, 7 not 6.

Knowing this I opened the “adc.hpp” which is as follows:

1 #ifndef _ADDAC_H
2 #define _ADDAC_H
3
4 class ADC {
5
6 };
7 #endif

If I comment out lines 1, 2 and 7 for all *.hpp the error goes away but then
I get redefinition errors. So something about the #ifndef is not allowing
the subsequent #includes to be compiled. Why?

Any help would be great.



“Julio Ameritech” <> jjsantos@ameritech.net> > wrote in message
news:aeiekr$881$> 2@inn.qnx.com> …
I have a QNX Neutrino workstation and a Windows 2000 (NTFS) workstation
connected via a network using CIFS (samba) for development purposes. The
CIFS connection seems to work fine in that I can successfully mount the
Windows folder on QNX and access files. However I can’t compile source
code
from withing QNX when the source files reside on a Windows folder.

For example, I have a project that compiles fine when it resides in a
local
QNX folder, but if I copy the project to a Windows folder the compiler
generates some ‘nonsensical’ error messages, such as "syntax error before
‘(’ ". In order to confirm that that project had been copied completely I
created a new folder locally in QNX and copied all the files from my
Windows
folder into the new QNX folder and the project compiled with no error
messages.

I have also notice that the root superuser in QNX looses permission over
some of the files in Windows.

Any help would be greatly appreciated.


\