bugTiny C Compiler - Bugs: bug #63847, tcclib can't compile hello world

 
 

bug #63847: tcclib can't compile hello world

Submitter:  None
Submitted:  Tue 28 Feb 2023 11:41:39 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 15 Mar 2023 08:02:24 PM UTC, comment #1: 

Did you used the newest tcc version?

Your example works here on linux with current mob branch.

$ tcc --version
tcc version 0.9.27 mob:4dc4e93 2023-03-13T17:01:35+01:00 (x86_64 Linux)


$ tcc -run main.c
Hello World!

Detlef Riekenberg <wine_dev>
Tue 28 Feb 2023 11:41:39 AM UTC, original submission:  

OS: Windows 10 x64

Using the following code works running tcc -run main.c

#include <stdio.h>

int main(int argc, char *argv[]) {
printf("Hello World!");
return 0;
}

but returns an error when using compile_string from libtcc.dll

In file included from <string>:1:
In file included from D:/ProgramData/Compiler/tcc/tcc64/include/stdio.h:9:
D:/ProgramData/Compiler/tcc/tcc64/include/_mingw.h:128: error: ';' expected (got "wint_t")

What am I missing?
Thank you.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by wine_dev (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.12.
    Corresponding source code