Skip to main content
gamedev.net
๐Ÿ”’ Locked

Strange syntax error...

Started by ShmeeBegek Nov 30, 2003 at 11:43 AM 1 replies 250+ views
Original Post
ShmeeBegek
ShmeeBegek
I''m compiling C with MSVC++ 6, and the following function: void GL_Set3dParams(float fov,float near,float far) { _3d_fov = fov; _3d_near = near; _3d_far = far; } gives me the error: D:\dev\battlesim\gl_viewport.c(29) : error C2055: expected formal parameter list, not a type list I do not think it is something else in the file, because if I remove this function from the file everything compiles... Thanks, ~SPH
AIM ME: aGaBoOgAmOnGeR
ShmeeBegek
ShmeeBegek

When I change the parameter names to a, b, c it compiles... So I suppose the compiler must have been taking near / far to mean the obsolete keywords near / far ... ugh.


AIM ME: aGaBoOgAmOnGeR
JuNC
JuNC
Yup, good old cruft heh

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.