gpt4 book ai didi

objective-c - gcc编译错误: passing argument to parameter here

转载 作者:太空宇宙 更新时间:2023-11-04 02:53:10 25 4
gpt4 key购买 nike

<分区>

我刚刚开始使用 c 和 objective c,我制作了这个简单的脚本:

  #import <Foundation/Foundation.h>
#include <stdio.h>
int s;
int main()
{
NSString *s = (@"Hello World");
printf(s);
return 0
}

但是,当我尝试在 gcc 中编译它时,出现错误:

passing argument to parameter here

int printf(const char * __restrict, ...) __printflike(1, 2);

我做错了什么?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com