Ticket #92 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

C++ - style comments cause compile errors

Reported by: tharan Owned by: warmerdam
Priority: major Milestone: 4.8.0
Component: Core Version: Development (trunk)
Keywords: Cc:

Description (last modified by warmerdam) (diff)

Checked out proj4 development version 1962 on 2011/02/04. Running make using cc --version

cc (SUSE Linux) 4.3.2 [gcc-4_3-branch revision 141291]

on uname -a

Linux snow 2.6.27.54-0.2-default #1 SMP 2010-10-19 18:40:07 +0200 x86_64 x86_64 x86_64 GNU/Linux

I get errors such as:

pj_init.c: In function ‘pj_init_ctx’:
pj_init.c:326: error: expected expression before ‘/’ token
make[2]: *** [pj_init.lo] Error 1

These are apparently due to C++ - style comments that start with // as opposed to C-style comments consisting of /* */ pairs.

I have detected and fixed this problem in files jiniproj.c, pj_init.c, and pj_malloc.c which I will attach to this ticket once I figure out how to do that.

Attachments

jniproj.c Download (6.2 KB) - added by tharan 2 years ago.
pj_init.c Download (15.3 KB) - added by tharan 2 years ago.
pj_malloc.c Download (0.8 KB) - added by tharan 2 years ago.

Change History

Changed 2 years ago by tharan

Changed 2 years ago by tharan

Changed 2 years ago by tharan

Changed 2 years ago by warmerdam

  • status changed from new to closed
  • resolution set to fixed
  • component changed from default to Core
  • description modified (diff)
  • milestone set to 4.8.0

Patched manually in trunk (r1965).

Note: See TracTickets for help on using tickets.