g++ compiler errors with vector class after installing/uninstalling libstlport

This is a discussion on g++ compiler errors with vector class after installing/uninstalling libstlport within the C++ Programming forums, part of the General Programming Boards category; Hello, I am trying to run the following simple program (on Ubuntu 8.04): Code: #include <vector> int main() { return ...

  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    2

    g++ compiler errors with vector class after installing/uninstalling libstlport

    Hello,

    I am trying to run the following simple program (on Ubuntu 8.04):

    Code:
    #include <vector>
    
    int main()
    {
    return 0;
    }
    and I am getting a bunch of errors (see later below). This compiled fine initially and it start giving me these errors after I installed (and then uninstalled) libstlport from the repos.It also compiles fine on other machines with the "initial" packages and without ever installing/uninstalling libstlport. Any help? Many thanks.

    The "tail" of the errors are:

    Code:
    ./vector:180: error: stray \223 in program
    ./vector:180:35: warning: null character(s) ignored
    ./vector:180: error: stray \256 in program
    ./vector:180:43: warning: null character(s) ignored
    ./vector:180: error: stray \22 in program
    ./vector:180:47: warning: null character(s) ignored
    ./vector:180: error: stray \365 in program
    ./vector:180:59: warning: null character(s) ignored
    ./vector:180: error: stray \306 in program
    ./vector:180:67: warning: null character(s) ignored
    ./vector:180:70: warning: null character(s) preserved in literal
    ./vector:180:70: warning: missing terminating " character
    ./vector:180: error: missing terminating " character
    ./vector:181:1: warning: null character(s) ignored
    ./vector:181:2: warning: null character(s) preserved in literal
    ./vector:181:23: warning: null character(s) ignored
    ./vector:182:1: warning: null character(s) ignored
    ./vector:182: error: stray \304 in program
    ./vector:182: error: stray \25 in program
    ./vector:182: error: stray @ in program
    ./vector:182:5: warning: null character(s) ignored
    ./vector:182:11: warning: null character(s) ignored
    ./vector:182:22: warning: null character(s) preserved in literal
    ./vector:182:22: warning: missing terminating " character
    ./vector:182: error: missing terminating " character
    ./vector:183:1: warning: null character(s) ignored
    ./vector:183: error: stray \216 in program
    ./vector:183: error: stray \22 in program
    ./vector:183: error: stray @ in program
    ./vector:183:5: warning: null character(s) ignored
    ./vector:183:11: warning: null character(s) ignored
    ./vector:183:19: warning: null character(s) ignored
    ./vector:183:22: warning: null character(s) preserved in literal
    ./vector:183:22: warning: missing terminating " character
    ./vector:183: error: missing terminating " character
    ./vector:184:1: warning: null character(s) ignored
    ./vector:185: error: stray @ in program
    ./vector:185:2: warning: null character(s) ignored
    ./vector:185:8: warning: null character(s) ignored
    ./vector:185: error: stray \201 in program
    ./vector:185:16: warning: null character(s) ignored
    ./vector:185:19: warning: null character(s) preserved in literal
    ./vector:185:19: warning: missing terminating " character
    ./vector:185: error: missing terminating " character
    ./vector:186:1: warning: null character(s) ignored
    ./vector:186: error: stray \234 in program
    ./vector:186: error: stray \20 in program
    ./vector:186: error: stray @ in program
    ./vector:186:5: warning: null character(s) ignored
    ./vector:186:11: warning: null character(s) ignored
    ./vector:186: error: stray \235 in program
    ./vector:186:19: warning: null character(s) ignored
    ./vector:186:22: warning: null character(s) preserved in literal
    ./vector:186:22: warning: missing terminating " character
    ./vector:186: error: missing terminating " character
    ./vector:187:1: warning: null character(s) ignored
    ./vector:187: error: stray \230 in program
    ./vector:187: error: stray \16 in program
    ./vector:187: error: stray @ in program
    ./vector:187:5: warning: null character(s) ignored
    ./vector:187: error: stray \36 in program
    ./vector:187:11: warning: null character(s) ignored
    ./vector:187: error: stray \272 in program
    ./vector:187:19: warning: null character(s) ignored
    ./vector:187: error: stray \22 in program
    ./vector:187:23: warning: null character(s) ignored
    ./vector:188:1: warning: null character(s) ignored
    ./vector:188: error: stray \30 in program
    ./vector:188: error: stray \10 in program
    ./vector:188: error: stray @ in program
    ./vector:188:5: warning: null character(s) ignored
    ./vector:188: error: stray \2 in program
    ./vector:188:12: warning: null character(s) ignored
    ./vector:188: error: stray \277 in program
    ./vector:188:19: warning: null character(s) ignored
    ./vector:188: error: stray \22 in program
    ./vector:188:23: warning: null character(s) ignored
    ./vector:188: error: stray \220 in program
    ./vector:188: error: stray \6 in program
    ./vector:188: error: stray @ in program
    ./vector:188:29: warning: null character(s) ignored
    ./vector:188: error: stray \305 in program
    ./vector:188:43: warning: null character(s) ignored
    ./vector:188:46: warning: null character(s) preserved in literal
    ./vector:188:46: warning: missing terminating " character
    ./vector:188: error: missing terminating " character
    ./vector:189:1: warning: null character(s) ignored
    ./vector:189: error: stray \340 in program
    ./vector:190: error: stray @ in program
    ./vector:190:2: warning: null character(s) ignored
    ./vector:191:1: warning: null character(s) ignored
    ./vector:191: error: stray \351 in program
    ./vector:191:9: warning: null character(s) ignored
    ./vector:191:12: warning: null character(s) preserved in literal
    ./vector:191:12: warning: missing terminating " character
    ./vector:191: error: missing terminating " character
    ./vector:192:1: warning: null character(s) ignored
    ./vector:193: error: stray @ in program
    ./vector:193:2: warning: null character(s) ignored
    ./vector:193: error: stray @ in program
    ./vector:193:8: warning: null character(s) ignored
    ./vector:193:22: warning: null character(s) ignored
    ./vector:193:33: warning: null character(s) ignored
    ./vector:193:49: warning: null character(s) ignored
    ./vector:193:60: warning: null character(s) ignored
    ./vector:193:74: warning: null character(s) ignored
    ./vector:193:88: warning: null character(s) ignored
    ./vector:193:101: warning: null character(s) ignored
    ./vector:193:123: warning: null character(s) ignored
    ./vector:193:138: warning: null character(s) ignored
    ./vector:193:145: warning: null character(s) ignored
    ./vector:193:157: warning: null character(s) ignored
    ./vector:193:170: warning: null character(s) ignored
    ./vector:193:183: warning: null character(s) ignored
    ./vector:193:197: warning: null character(s) ignored
    ./vector:193:209: warning: null character(s) ignored
    ./vector:193:231: warning: null character(s) ignored
    ./vector:193:247: warning: null character(s) ignored
    ./vector:193:269: warning: null character(s) ignored
    ./vector:193:286: warning: null character(s) ignored
    ./vector:193:305: warning: null character(s) ignored
    ./vector:193:314: warning: null character(s) ignored
    ./vector:193:325: warning: null character(s) ignored
    ./vector:193:361: warning: null character(s) ignored
    ./vector:193:409: warning: null character(s) ignored
    ./vector:193: error: stray @ in program
    ./vector:193: error: stray @ in program
    ./vector:193:452: warning: null character(s) ignored
    ./vector:193: error: stray @ in program
    ./vector:193: error: stray @ in program
    ./vector:193:468: error: too many decimal points in number
    ./vector:193:472: warning: null character(s) ignored
    ./vector:193:527: warning: null character(s) ignored
    ./vector:193:636: warning: null character(s) ignored
    ./vector:193:652: warning: null character(s) ignored
    ./vector:193:659: warning: null character(s) ignored
    ./vector:193:729: warning: null character(s) ignored
    ./vector:193:793: warning: null character(s) ignored
    ./vector:193:859: warning: null character(s) ignored
    ./vector:193:891: warning: null character(s) ignored
    ./vector:193:965: warning: null character(s) ignored
    ./vector:193:994: warning: null character(s) ignored
    ./vector:193:1009: warning: null character(s) ignored
    ./vector:193:1029: warning: null character(s) ignored
    ./vector:193: error: stray @ in program
    ./vector:193: error: stray @ in program
    ./vector:193:1049: warning: null character(s) ignored
    ./vector:193:1065: warning: null character(s) ignored
    ./vector:193:1092: warning: null character(s) ignored
    ./vector:193:1098: warning: null character(s) ignored
    ./vector:193: error: stray @ in program
    ./vector:193: error: stray @ in program
    ./vector:193:1115: error: too many decimal points in number
    ./vector:193:1119: warning: null character(s) ignored
    ./vector:193:1181: warning: null character(s) ignored
    ./vector:193: error: stray @ in program
    ./vector:193: error: stray @ in program
    ./vector:193:1208: error: too many decimal points in number
    ./vector:193:1212: warning: null character(s) ignored
    ./vector:193:1248: warning: null character(s) ignored
    ./vector:193:1298: warning: null character(s) ignored
    ./vector:193:1306: warning: null character(s) ignored
    ./vector:193:1365: warning: null character(s) ignored
    ./vector:193:1443: warning: null character(s) ignored
    ./vector:193:1468: warning: null character(s) ignored
    ./vector:193:1501: warning: null character(s) ignored
    ./vector:193:1548: warning: null character(s) ignored
    ./vector:193:1563: warning: null character(s) ignored
    ./vector:193:1614: warning: null character(s) ignored
    ./vector:193:1627: warning: null character(s) ignored
    ./vector:193:1698: warning: null character(s) ignored
    ./vector:193:1741: warning: null character(s) ignored
    ./vector:193:1770: warning: null character(s) ignored
    ./vector:193:1805: warning: null character(s) ignored
    ./vector:193:1829: warning: null character(s) ignored
    ./vector:193:1842: warning: null character(s) ignored
    ./vector:193:1904: warning: null character(s) ignored
    ./vector:193:1933: warning: null character(s) ignored
    ./vector:193:1973: warning: null character(s) ignored
    ./vector:193:2051: warning: null character(s) ignored
    ./vector:193:2067: warning: null character(s) ignored
    ./vector:193:2128: warning: null character(s) ignored
    ./vector:193:2141: warning: null character(s) ignored
    ./vector:193:2154: warning: null character(s) ignored
    ./vector:193:2199: warning: null character(s) ignored
    ./vector:193: error: stray @ in program
    ./vector:193: error: stray @ in program
    ./vector:193:2216: error: too many decimal points in number
    ./vector:193:2220: warning: null character(s) ignored
    ./vector:193:2261: warning: null character(s) ignored
    ./vector:193:2273: warning: null character(s) ignored
    ./vector:193:2289: warning: null character(s) ignored
    ./vector:193:2332: warning: null character(s) ignored
    ./vector:193:2376: warning: null character(s) ignored
    ./vector:193:2401: warning: null character(s) ignored
    ./vector:193:2439: warning: null character(s) ignored
    ./vector:193:2498: warning: null character(s) ignored
    ./vector:193:2503: warning: null character(s) ignored
    ./vector:193: error: stray @ in program
    ./vector:193: error: stray @ in program
    ./vector:193:2541: warning: null character(s) ignored
    ./vector:193:2593: warning: null character(s) ignored
    ./vector:193:2679: warning: null character(s) ignored
    ./vector:193:2725: warning: null character(s) ignored
    ./vector:193:2773: warning: null character(s) ignored
    ./vector:193:2780: warning: null character(s) ignored
    ./vector:193:2852: warning: null character(s) ignored
    ./vector:193: error: stray @ in program
    ./vector:193: error: stray @ in program
    ./vector:193:2885: warning: null character(s) ignored
    ./vector:193:2928: warning: null character(s) ignored
    ./vector:193:2941: warning: null character(s) ignored
    ./vector:193:2985: warning: null character(s) ignored
    ./vector:193: error: stray @ in program
    ./vector:193: error: stray @ in program
    ./vector:193:3004: warning: null character(s) ignored
    ./vector:193: error: stray @ in program
    ./vector:193: error: stray @ in program
    ./vector:193:3028: warning: null character(s) ignored
    ./vector:193:3060: warning: null character(s) ignored
    ./vector:193:3095: warning: null character(s) ignored
    ./vector:193:3141: warning: null character(s) ignored
    ./vector:193:3215: warning: null character(s) ignored
    ./vector:193:3243: warning: null character(s) ignored
    ./vector:193:3272: warning: null character(s) ignored
    ./vector:193:3277: warning: null character(s) ignored
    ./vector:193:3283: warning: null character(s) ignored
    ./vector:193:3319: warning: null character(s) ignored
    ./vector:193:3412: warning: null character(s) ignored
    ./vector:193:3413: warning: no newline at end of file
    ./vector:1: error: expected constructor, destructor, or type conversion before > token
    ./vector:5: error: expected declaration before } token

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Whatever it is including, it's not a text file. It appears that some binary file sneaked into your include path.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Registered User
    Join Date
    Sep 2009
    Posts
    2
    Thanks for the reply... hmm this gave me a hint and i tried compiling on the same machine using a different user and it's compiles fine... Had a look on my bash file and there seems to be no problems with it... anyone any idea where might be some related settings be stored?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 09:13 AM
  2. Ten Errors
    By AverageSoftware in forum Contests Board
    Replies: 0
    Last Post: 07-20-2007, 10:50 AM
  3. bloodshed compiler errors
    By nerore in forum C++ Programming
    Replies: 5
    Last Post: 04-17-2004, 02:37 PM
  4. How to resolve linking errors?
    By m712 in forum C++ Programming
    Replies: 3
    Last Post: 11-03-2002, 09:17 PM
  5. Compiler errors
    By BellosX in forum C Programming
    Replies: 2
    Last Post: 09-21-2001, 03:24 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21