You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Eclipse, I don't see any errors for the following C++ code, but I do in eclim. Any thoughts about why?
Code:
#include <cstdio>
using namespace std;
int main() {
int x = 7;
int *y = &x;
printf("x is %d\n", x);
printf("y is %d\n", y);
}
:llist
1 eclipse-workspace/scratch/scratch.cpp:7 col 2 error: 'printf' is ambiguous ' Candidates are: int printf(const char *, ...) '
2 eclipse-workspace/scratch/scratch.cpp:8 col 2 error: 'printf' is ambiguous ' Candidates are: int printf(const char *, ...) '
Press ENTER or type command to continue
:ProjectNatures
scratch - c++, cpp, c
Press ENTER or type command to continue
Using Eclipse, I don't see any errors for the following C++ code, but I do in eclim. Any thoughts about why?
Code:
:llist
:ProjectNatures
Background:
Thank you!
The text was updated successfully, but these errors were encountered: