2 Replies - 222 Views - Last Post: 22 January 2013 - 06:54 PM Rate Topic: -----

#1 raftech  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 22-January 13

sytem() error please help!

Posted 22 January 2013 - 05:29 PM

i want to run a python file with a certain program and what i got told does'nt work this is what i got:
system("pythonw.exe myfile.py")



but it just comes up with this error

mingw32-g++.exe -Wall -fexceptions  -g     -c "E:\Raftech\C++\C++ Projects\EXE Program\main.cpp" -o obj\Debug\main.o
E:\Raftech\C++\C++ Projects\EXE Program\main.cpp:1:7: error: expected constructor, destructor, or type conversion before '(' token
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings (0 minutes, 0 seconds)



pleas help me
thanks in advance

This post has been edited by Martyr2: 22 January 2013 - 05:42 PM
Reason for edit:: Please use code tags (with a closing forward slash) in the future, thanks! :)


Is This A Good Question/Topic? 0
  • +

Replies To: sytem() error please help!

#2 Skydiver  Icon User is online

  • Code herder
  • member icon

Reputation: 3480
  • View blog
  • Posts: 10,730
  • Joined: 05-May 12

Re: sytem() error please help!

Posted 22 January 2013 - 05:39 PM

what happened to your main() function?

Sent from my T-Mobile G2 using Tapatalk 2
Was This Post Helpful? 1
  • +
  • -

#3 jjl  Icon User is offline

  • Engineer
  • member icon

Reputation: 1072
  • View blog
  • Posts: 4,532
  • Joined: 09-June 09

Re: sytem() error please help!

Posted 22 January 2013 - 06:54 PM

Your missing a semi colon at the end of your function call.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1