English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 25 February 2016, 10:13   #1
majikeyric
Registered User
 
majikeyric's Avatar
 
Join Date: Oct 2015
Location: France
Posts: 82
VBCC and #include

Hi,

I start using the VBCC cross compiler on PC and I really wonder why :

Code:
#include "myfile.h"
doesn't work as expected : including myfile.h which is located in the same directory of the current file.
The compiler doesn't find myfile.h

I have to include the path with the -I parameter in the compiler config.
I would want to avoid that...

Thanks
majikeyric is offline  
Old 25 February 2016, 15:19   #2
Leffmann
 
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
The pre-processor isn't fully Windows compatible. If you want a quick fix, open vbcc/ucpp/cpp.c and change lines 243, 599, and 607, into
#if defined(MSDOS) || defined(ATARI) || defined(_WIN32)
and build the tools again.
Leffmann is offline  
Old 26 February 2016, 10:55   #3
majikeyric
Registered User
 
majikeyric's Avatar
 
Join Date: Oct 2015
Location: France
Posts: 82
Oh thanks for the information! Great!
majikeyric is offline  
Old 03 March 2016, 15:07   #4
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
Thanks. I committed this change now.

Please tell me about such issues (by email). I never do development or tests on Windows myself.
phx is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
vbcc multiple include paths krustur Coders. C/C++ 2 20 October 2014 23:46
DevPac Include disks h0ffman request.Apps 4 23 September 2010 19:54
DevPac 3.02 with include disks derSammler request.Apps 6 13 February 2009 17:14
Devpac with include disk BlueAchenar request.Apps 6 09 December 2008 00:58
Devpac with Include disk? JMike request.Apps 12 04 December 2007 21:48

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 21:56.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.06658 seconds with 13 queries