View mode: basic / threaded / horizontal-split · Log in · Help
March 04, 2011
htod and system files
The htod page, http://www.digitalmars.com/d/2.0/htod.html, says that 
system files will be included using the -hs option.

htod mysql.h -hs
Fatal error: unable to open input file 'sys/types.h'

Does it try to find these files through an environment variable?
March 05, 2011
Re: htod and system files
On 3/4/2011 3:31 PM, simendsjo wrote:
> The htod page, http://www.digitalmars.com/d/2.0/htod.html, says that
> system files will be included using the -hs option.
>
> htod mysql.h -hs
> Fatal error: unable to open input file 'sys/types.h'
>
> Does it try to find these files through an environment variable?

htod is compatible with the -I and -D compiler switches from dmc.  Use 
-I to reference to the directory containing the system headers you want 
to use.
March 05, 2011
Re: htod and system files
On 05.03.2011 20:04, Bekenn wrote:
> On 3/4/2011 3:31 PM, simendsjo wrote:
>> The htod page, http://www.digitalmars.com/d/2.0/htod.html, says that
>> system files will be included using the -hs option.
>>
>> htod mysql.h -hs
>> Fatal error: unable to open input file 'sys/types.h'
>>
>> Does it try to find these files through an environment variable?
>
> htod is compatible with the -I and -D compiler switches from dmc. Use -I
> to reference to the directory containing the system headers you want to
> use.

Ah, thanks.

Doesn't seem dmc is a supported compiler though..

htod -hs -Ic:\d\dm\include mysql.h

  my_socket fd;                                 /* For Perl DBI/dbd */
             ^
mysql_com.h(268) : Error: ';' expected following declaration of struct 
member
my_bool net_realloc(NET *net, size_t length);
                                   ^
mysql_com.h(422) : Error: ')' expected
my_bool my_net_write(NET *net,const unsigned char *packet, size_t len);
                                                                ^
mysql_com.h(424) : Error: ')' expected
                          const unsigned char *header, size_t head_len,
                                                            ^
mysql_com.h(426) : Error: ')' expected
int     net_real_write(NET *net,const unsigned char *packet, size_t len);
                                                                  ^
mysql_com.h(428) : Error: ')' expected
Fatal error: too many errors
Top | Discussion index | About this forum | D home